เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

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.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Cleaning Data in R

ดูคอร์ส

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# Count categories of dest_region
sfo_survey %>%
  ___
แก้ไขและรันโค้ด