Session Ready
Exercise

Manually collapsing levels

There are 16 job titles (including "Other") that people could select in the survey. Let's collapse those into a couple big categories: "Computer Scientist", "Data analyst/scientist/engineer", "Researcher," and "Other." The dataset multiple_choice_responses has been loaded for you.

Instructions
100 XP
  • Collapse the levels of CurrentJobTitleSelect into a new variable, grouped_titles.
  • Then take grouped_titles and put everything that isn't one of those three grouped titles into "Other Title".
  • Finally, get the count of all the grouped titles.