НачатьНачать бесплатно

Summarizing by state

Another interesting column is land_area, which shows the land area in square miles. Here, you'll summarize both population and land area by state, with the purpose of finding the density (in people per square miles).

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

Это упражнение является частью курса

Data Manipulation with dplyr

Посмотреть курс

Интерактивное практическое упражнение

Попробуйте выполнить это упражнение, дополнив этот пример кода.

counties_selected %>%
  # Group by state 
  ___
  # Find the total area and population
  ___
  
Редактировать и запускать код