1. Learn
  2. /
  3. Courses
  4. /
  5. Cleaning Data in R

Exercise

Collapsing categories

One of the tablets that participants filled out the sfo_survey on was not properly configured, allowing the response for dest_region to be free text instead of a dropdown menu. This resulted in some inconsistencies in the dest_region variable that you'll need to correct in this exercise to ensure that the numbers you report to your boss are as accurate as possible.

dplyr and forcats are loaded and sfo_survey is available.

Instructions 1/3

undefined XP
    1
    2
    3
  • Count the categories of dest_region.