Filtering and arranging for one year
The dplyr
verbs you've learned are useful for exploring data. For instance, you could find out the most common names in a particular year.
This exercise is part of the course
Data Manipulation with dplyr
Exercise instructions
- Filter for only the year 1990.
- Sort the table in descending order of the number of babies born.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
babynames %>%
# Filter for the year 1990
___
# Sort the number column in descending order
___