Skip to content
RDocumentation: data
Note that this notebook was automatically generated from an RDocumentation page. It depends on the package and the example code whether this code will run without errors. You may need to edit the code to make things work.
if(!require('utils')) {
install.packages('utils')
library('utils')
}
require(utils)
data() # list all available data sets
try(data(package = "rpart") ) # list the data sets in the rpart package
data(USArrests, "VADeaths") # load the data sets 'USArrests' and 'VADeaths'
## Alternatively
ds <- c("USArrests", "VADeaths"); data(list = ds)
help(USArrests) # give information on data set 'USArrests'