Session Ready
Exercise

Reading multivariate data using read.table

Reading multivariate data from a file or an external URL can generally be done using the read.table() or read.csv() commands, depending on the type of data source. In this exercise you will read the wine dataset from the UCI machine learning website. A full description of the dataset can be found here.

For more details on reading data in R, you can consult the Importing Data in R (Part 1) and Importing Data in R (Part 2) courses. After this exercise, the wine dataset will be preloaded for you.

Instructions
100 XP
  • Use theread.table() function to read the wine dataset from http://archive.ics.uci.edu/ml/machine-learning-databases/wine/wine.data.
  • Display the first 4 entries of the dataset.
  • Find the dimensions of the dataset.
  • Check the names of columns of the dataset.