ff_pums_ethnicity: Relabel PUMS data from numeric race / ethnicity to...

View source: R/cleaning.R

ff_pums_ethnicityR Documentation

Relabel PUMS data from numeric race / ethnicity to descriptive string

Description

This function labels Race / ethnicities in PUMS data as either White, African American, or Hispanic / Latino. The

Usage

ff_pums_ethnicity(df)

Arguments

df

Dataframe of PUMS data. The dataframe must have the following two columns: 'RAC1P' and 'HISP'

Value

The same dataframe, but with the race / ethnicity column 'RAC1P' labeled descriptively.

Examples

ff_pums_ethnicity(df)


forsythfuture/FFtools documentation built on April 5, 2022, 10:02 p.m.