This section involves understanding the depth of each and every attribute that is considered to be important for the previously mentioned dataset.
The following steps are used to map the underlying structure of our dataset:
- Try to get a feel for the data as per the attribute structure:
> class(longley)
[1] "data.frame"
The output shows that the dataset includes a tabular format of rows and columns that is well defined in dimensions.
- Check the dimensions of the dataset:
> dim(longley)
[1] 16 7
This means that the dataset is comprised of 858 rows and 36 columns. The column structure is as discussed in the first section.
- View the column names of the dataset to check whether they match the records included in the Excel file:
> colnames(longley)
[1] "GNP Deflator" "GNP" "Unemployed" "Armed...