Session Ready
Exercise

Identify variable types

Recall from the video that the glimpse() function from dplyr provides a handy alternative to str() for previewing a dataset. In addition to the number of observations and variables, it shows the name and type of each column, along with a neatly printed preview of its values.

Let's have another look at the email50 data, so we can practice identifying variable types.

Instructions
100 XP

Use the glimpse() function to view the variables in the email50 dataset.

Remember that variable descriptions are available in the help file for the dataset, which we can access by typing ?email50 in the console.

Review the output to identify each variable as either numerical or categorical, and further as discrete or continuous (if numerical) or ordinal or not ordinal (if categorical).