census_ln: Impute Race Based on Census Last Name Datasets

Description Usage Arguments Details Value Examples

Description

Appends data on percentage whites, blacks, asians, hispanics, mixed-race, and native americans with the last name from the 2000 and 2010 census datasets

Usage

1
census_ln(surname = NULL)

Arguments

surname

Required; vector of strings

Details

See more at: https://github.com/soodoku/ethnicolor/tree/master/data-raw/census

Value

Data frame with all the details that are in the census datasets

Examples

1
2
3
census_ln(surname = "Smith")
top5 <- census_ln(c("Smith", "Johnson", "Williams", "Brown", "Jones"))
sum(top5$cs2010_count)

appeler/ethnicolor documentation built on May 30, 2019, 4:20 p.m.