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
PlantGrowth
and read the description. - Create a new object called
pg10
containing just the first 10 rows of the datasetPlantGrowth
.
Last modified: Friday, December 16, 2022, 12:04 PM