The following are the activity solutions for this chapter.
Use the following code to load the datasets library:
Use the following code to load the diamonds dataset:
The function str() can be used to examine the diamonds dataset as follows:
We understand that there are three factors of ordered type as we examine the diamonds dataset. To identify the class of those factors, we can use the function class() as follows:
The following code can be used to load the midwest dataset:
The str() function can be...