Cross Census 2010 to SOC 2010

census2010_to_soc2010(base, census, code_titles = FALSE)

Arguments

base

Dataframe from any Survey including a variable with USA Census 2010 codes

census

character vector containing Census 2010 codes

code_titles

logical, if TRUE code_titles are added to dataframe

Value

The function returns the provided dataframe, adding a new variable with the crosswalk to SOC 2010 codes

Examples


base_crossed <- census2010_to_soc2010(toy_base_ipums_cps_2018,census = "OCC2010",code_titles = FALSE)