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:

  1. Use the function data() to show the available datasets. 
  2. Open the help file for the dataset PlantGrowth and read the description. 
  3. Create a new object called pg10 containing just the first 10 rows of the dataset PlantGrowth.
Last modified: Friday, December 16, 2022, 12:04 PM