Learn R Programming

ppmf (version 0.1.3)

replace_race: Replace Race Categories

Description

Replaces the Census's numeric categories for race with less specific racial classifications, typically useful for redistricting purposes.

Usage

replace_race(ppmf, race = CENRACE)

Arguments

ppmf

tibble of ppmf data

race

Column in ppmf containing race codes

Value

tibble with race column replaced by simpler racial classifications

Examples

Run this code
# NOT RUN {
data(ppmf_ex)
ppmf_ex %>% replace_race()
# }

Run the code above in your browser using DataLab