शुरू करेंमुफ़्त में शुरू करें

Selecting a county from each region

Previously, you used the walk column, which offers a percentage of people in each county that walk to work, to add a new column and count to find the total number of people who walk to work in each county.

Now, you're interested in finding the county within each region with the highest percentage of citizens who walk to work.

counties_selected <- counties %>%
  select(region, state, county, metro, population, walk)

यह अभ्यास पाठ्यक्रम का हिस्सा है

Data Manipulation with dplyr

पाठ्यक्रम देखें

अभ्यास निर्देश

  • Find the county in each region with the highest percentage of citizens who walk to work.

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

counties_selected %>%
  # Group by region
  ___
  # Find the county with the highest percentage of people who walk to work
  ___
कोड संपादित करें और चलाएँ