Factors and how to create them
6. Seeing all the levels of a factor
Working with factors
Modifying factor variables
Summary

Instruction

Sometimes, we need to get all levels of our factor data. To do this, we have the levels() function:

levels(fct_age)

Exercise

List all the levels of fct_mrt_status using levels().

Stuck? Here's a hint!

Type:

levels(fct_mrt_status)