1. Learn
  2. /
  3. Courses
  4. /
  5. Data Manipulation with dplyr

Connected

Exercise

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.

Instructions

100 XP
  • Use a single verb to add a proportion_men column with the fractional male population and also keep the state, county, and population columns.
  • Filter for counties with a population of at least ten thousand (10000).
  • Arrange counties in descending order of their proportion of men.