1. Learn
  2. /
  3. Courses
  4. /
  5. Categorical Data in the Tidyverse

Exercise

Changing the order of factor levels

In previous exercises, we've worked with the questions in the Kaggle dataset whose answers had no inherent order, like the question about current job title. But other questions do have answers that are ordered. This could be something like a person rating how much they agree with a statement on a 5-point scale from "strongly disagree" to "strongly agree." We'll look at one question in the survey about the tools people use at work and whether they're internal or external. multiple_choice_responses has been loaded for you.

Instructions 1/2

undefined XP
    1
    2
  • Print the levels of WorkInternalVsExternalTools.
  • Manually change the order of levels from Entirely internal to Entirely external, putting Do not know last.