overwrite_hisp_race {ppmf} | R Documentation |
Overwrite Races with Hispanic
Description
Overwrite Races with Hispanic
Usage
overwrite_hisp_race(ppmf, race = CENRACE, hisp = CENHISP)
Arguments
ppmf |
tibble of ppmf data |
race |
Column in ppmf containing race codes |
hisp |
Column in ppmf containing 1 for Not Hispanic and 2 for Hispanic |
Value
tibble with race column entries replaced if the individual is Hispanic
Examples
data(ppmf_ex)
ppmf_ex %>% replace_race() %>% overwrite_hisp_race()
[Package ppmf version 0.1.3 Index]