pums_recode: Recode ACS' PUMS Datasets to Forsyth Futures' Labeling

View source: R/measures.R

pums_recodeR Documentation

Recode ACS' PUMS Datasets to Forsyth Futures' Labeling

Description

This function recodes the ACS' PUMS variables to match Forsyth Futures' labeling standards

Usage

pums_recode(data)

Arguments

data

The PUMS dataset object

Details

Warning: Make sure to make a column titled 'year' before using pums_recode()

Examples

 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()

danielludolf/FFmeasures documentation built on Oct. 8, 2022, 7:47 a.m.