Functions and data for A Primer of Ecology with R