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

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
  ___
  
कोड संपादित करें और चलाएँ