get_babyname: Retrieve a name from the babynames data set

Description Usage Arguments Details Value

View source: R/get_babyname.R

Description

The babynames data set provides information on names collected by the United States Social Security Administration. The data describes how many children were given each name for each year since 1880, as well as the proportion of children given the name in a given year. The data is organized by year, name and sex and includes an entry for each name used five or more times in a single year.

Usage

1

Arguments

name

A character string. The string should begin with a capital letter.

sex

"M" for male, "F" for female

Details

get_babyname returns all of the entries associated with a single name and sex.

Value

A data frame with five variables: year, sex, name, n, and prop (n divided by the total number of applicants that year)


rstudio/reportsWS documentation built on May 28, 2019, 5:42 a.m.