This section involves understanding each and every attribute in depth, which is considered to be important for the dataset indicated:
- Try to get a feel for the data as per the attribute structure by executing the following command:
> class(Autompg)
[1] "data.frame"
The output shows that the dataset is merely a tabular format of a data frame.
- Check the dimensions of the dataset by executing the following command:
> dim(Autompg)
[1] 398 9
This means that the dataset comprises 398 rows and 9 columns. The column structure is discussed in the first section.
- View the column names of the dataset as follows to establish whether they correspond to the records included in the Excel file:
> colnames(Autompg)
[1] "mpg" "cylinders" "displacement" "horsepower" "weight" "acceleration...