View source: R/Census2010_to_SOC2010.R
census2010_to_soc2010 | R Documentation |
Cross Census 2010 to SOC 2010
census2010_to_soc2010(base, census, code_titles = FALSE)
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 |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.