Activity: Identifying Variable Classes and Types

Scenario

You need to write some code for classifying the data correctly for easy report generation. The following is the provided data:

 

Aim

To identify different classes and types of data in R.

Prerequisites

A pencil or pen, plus RStudio and R installed on your machine.

Steps for completion

  1. Fill in the table provided with the class and type of each variable.
  2. Use the class() or typeof() functions if you get stuck, but first try and fill it in without the code!