The dataset that we will be focusing on throughout this chapter is the Auto.MPG dataset, which is used predominantly with the R language. This dataset gives the complete details of fuel economy data for the years 1999 and 2008 for 38 popular car models. This dataset also comes with the ggplot2 package, which we will cover in the coming chapters.
For now, we will focus on importing the dataset from the CSV file, which you can download from the following link:
https://github.com/PacktPublishing/Hands-On-Exploratory-Data-Analysis-with-R/tree/master/ch03
For more details pertaining to the dataset, you can refer to the following link:
https://archive.ics.uci.edu/ml/datasets/auto+mpg
Once the download is complete, we can import the CSV file into the dataset. With this conversion, we can include the dataset in the R workspace:
> mpg <-read.csv("highway_mpg...