baby_names: Baby Names Data.

baby_namesR Documentation

Baby Names Data.

Description

From USA Social Security Administration, baby names from 1880 to 2020, the top 20 for each year

Usage

baby_names

Format

A data frame with 2820 rows and 4 variables.

rank

Rank of name in year.

male

Boy's name.

female

Girl's name.

year

Year of name rank.

Source

Social Security Administration

Examples

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()


npaterno/data_hunter documentation built on July 22, 2022, 10:20 a.m.