R Datasets
Datasets :
R has a built in package known as ‘datasets’, which provides sample data to work with. The command library (help = “datasets”) offers more details on this
The data () function displays the available datasets that R contains
If we want to retrieve a dataset, “airquality”
CODE/PROGRAM/EXAMPLE
data("airquality")
newdata <- airquality
head(newdata)
Output :