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

Counting by region

The counties dataset contains columns for region, state, population, and the number of citizens, which we selected and saved as the counties_selected table. In this exercise, you'll focus on the region column.

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

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

Data Manipulation with dplyr

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

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

  • Use count() to find the number of counties in each region, using a second argument to sort in descending order.

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

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

# Use count to find the number of counties in each region
counties_selected %>%
  ___
कोड संपादित करें और चलाएँ