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!
Final quiz


It looks like we have some candidates for factors. Let's create them!


Create factors using the marital_status and age_group columns. Use the unique values of each column as the levels for their corresponding factors.

Stuck? Here's a hint!


personal_info$age_group <- parse_factor(
  personal_info$age_group, levels = NULL)
personal_info$marital_status <- parse_factor(
  personal_info$marital_status, levels = NULL)