baby_names | R Documentation |
From USA Social Security Administration, baby names from 1880 to 2020, the top 20 for each year
baby_names
A data frame with 2820 rows and 4 variables.
Rank of name in year.
Boy's name.
Girl's name.
Year of name rank.
Social Security Administration
library(dplyr) # List the 10 most frequent male names baby_names %>% group_by(male) %>% summarise(freq=n()) %>% arrange(desc(freq)) %>% top_n(n = 10) # List Female names in top 20 in both 1880 and 1980 baby_names %>% select(female,year) %>% group_by(female) %>% filter(year==1880 | year == 1980) %>% filter(n() > 1) %>% select(female) %>% distinct()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.