Question
NEED HELP FILLING IN THE BLANKS ```{r} # create a new data frame called baby_name_ranking_specific_year in which you # store the results of the following:
NEED HELP FILLING IN THE BLANKS
```{r} # create a new data frame called baby_name_ranking_specific_year in which you # store the results of the following: # start with the original data frame us_baby_names and then # filter for a specific year_baby_born, # you might want to filter by name_gender as well and then # arrange the data by decreasing order of baby_count and then # keep the mutate as is, which creates a rank variable with consecutive values # starting at 1 all the all to the total number of columns in the data baby_name_ranking_specific_year % filter(_________) %>% arrange(_________) %>% mutate(rank = c(1:nrow(.))) # keep this line as is
# now that you have your data filtered and arranged by year # filter for your specific name to retrieve ranking info baby_name_ranking_specific_year %>% filter(_________) ```
snippet of us_baby_names data frame:
baby_name name_gender baby_count year_baby_born 1 Isabella F 22731 2010 2 Sophia F 20477 2010 3 Emma F 17179 2010 4 Olivia F 16860 2010 5 Ava 71 15300 2010 6 Emily F 14172 2010 7 Abigail F 14124 2010 8 Madison F 13070 2010 9 Chloe F 11656 2010 10 Mia F 10541 2010 11 Addison F 10253 2010 Showing 1 to 11 of 1,690,784 entries, 4 total columnsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started