1. Learn
  2. /
  3. Courses
  4. /
  5. R For SAS Users

Connected

Exercise

Load external dataset

In this exercise you will read in the abalone.csv dataset which is in CSV (comma separated values) format using the read_csv() function from the readr package. You will first need to load the readr package. The abalone.csv dataset has 4177 rows and 9 columns which include sex, size and weight measurements of abalones. Learn more about the abalone.csv dataset.

Instructions

100 XP
  • Load the readr package using the library(packagename) function.
  • Create a dataset object called abalone by assigning the output <- from dataset imported using the read_csv() function from the readr package.
  • Check that the number of rows and columns for the abalone dataset are correct, using the dimension dim() function.
  • List the variables names in the abalone dataset.