Mutate, filter, and arrange
In this exercise, you'll put together everything you've learned in this chapter (select(), mutate(), filter() and arrange()), to find the counties with the highest proportion of men.
यह अभ्यास पाठ्यक्रम का हिस्सा है
Data Manipulation with dplyr
अभ्यास निर्देश
- Use a single verb to add a
proportion_mencolumn with the fractional male population and also keep thestate,county, andpopulationcolumns. - Filter for counties with a population of at least ten thousand (
10000). - Arrange counties in descending order of their proportion of men.
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
counties %>%
# Keep state, county and add proportion_men
___
# Filter for population of at least 10,000
___
# Arrange proportion of men in descending order
___