pums_recode | R Documentation |
This function recodes the ACS' PUMS variables to match Forsyth Futures' labeling standards
pums_recode(data)
data |
The PUMS dataset object |
Warning: Make sure to make a column titled 'year' before using pums_recode()
year <- 2019 tidycensus::get_pums(variables = c("RAC1P","HISP","SEX","POVPIP","AGEP","SCHL"), state = "NC", puma = c("01801","01802","01803"), year = year, survey = "acs1", rep_weights = "person") %>% dplyr::rename_all(~str_to_upper(.x)) %>% # Make sure to make a column titled 'year' before using pums_recode() dplyr::mutate(year = year) %>% pums_recode()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.