Cross Census 2010 to SOC 2010
census2010_to_soc2010(base, census, code_titles = FALSE)
Dataframe from any Survey including a variable with USA Census 2010 codes
character vector containing Census 2010 codes
logical, if TRUE code_titles are added to dataframe
The function returns the provided dataframe, adding a new variable with the crosswalk to SOC 2010 codes
base_crossed <- census2010_to_soc2010(toy_base_ipums_cps_2018,census = "OCC2010",code_titles = FALSE)