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)
Bu egzersiz
Data Manipulation with dplyr
kursunun bir parçasıdırEgzersiz talimatları
- Use
count()to find the number of counties in each region, using a second argument to sort in descending order.
Uygulamalı interaktif egzersiz
Bu örnek kodu tamamlayarak bu egzersizi bitirin.
# Use count to find the number of counties in each region
counties_selected %>%
___