Example datasets for A Learning Guide to R

CRAN_Status_Badge Travis-CI Build Status

Thirty example datasets, including some classics, data obtained from literature, and original data contributed by researchers at the Hawkesbury Institute for the Environment.


Many datasets arise from the R course at the Hawkesbury Institute for the Environment, still taught by Jeff Powell. Many other datasets were added, some original, and some from the UCI Machine Learning Repository (with some modifications).

The datasets are used in an upcoming book, A Learning Guide to R you can read the source here.


Not yet on CRAN, so do:



After the usual library(lgrdata), the data need to be loaded separately, for example:


Type library(help=lgrdata) for a list of all included datasets, and inspect the help pages for details (and sometimes an example).