Practice: Built-in Datasets
In this short practice exercise, you will try using a dataset already loaded in R. It is convenient when you want to try things out on some data (of a certain structure) but do not have your data ready yet.
Exercise:
- Use the function
data()to show the available datasets. - Open the help file for the dataset
PlantGrowthand read the description. - Create a new object called
pg10containing just the first 10 rows of the datasetPlantGrowth.