ПочатиПочніть безкоштовно

Summarizing by state and region

You can group by multiple columns instead of grouping by one. Here, you'll practice aggregating by state and region, and notice how useful it is for performing multiple aggregations in a row.

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

Ця вправа є частиною курсу

Data Manipulation with dplyr

Переглянути курс

Інтерактивна практична вправа

Спробуйте виконати цю вправу, доповнивши цей зразок коду.

counties_selected %>%
  # Group and summarize to find the total population
  ___
  
Редагувати та запускати код