powered by
Overwrite Races with Hispanic
overwrite_hisp_race(ppmf, race = CENRACE, hisp = CENHISP)
tibble of ppmf data
Column in ppmf containing race codes
Column in ppmf containing 1 for Not Hispanic and 2 for Hispanic
tibble with race column entries replaced if the individual is Hispanic
# NOT RUN { data(ppmf_ex) ppmf_ex %>% replace_race() %>% overwrite_hisp_race() # }
Run the code above in your browser using DataLab