Search notes:

R datasets

R comes with a few datasets. Some (most?, all?) of these are located in a package named datasets.

Getting information about available datasets

The datasets of currently loaded packages are returned with data().
The datasets of all installed (but not necessarily loaded) packages is returned with data(package = .packages(all.available = TRUE)).
The datasets for a particular package can be queried with data(package = 'ggplot2').
A list of all installed datasets can be found with library(help="datasets").

See also

search path
data()
data sets

Index