Save up to $499! Grab all Python courses for $49 or all online courses we’ve ever launched for only $169. Only Feb 11-16. Happy Valentine's!
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)