ff_acs_ethnicity: Filter for race / ethnicity rows in ACS data

Description Usage Arguments Details Value Examples

View source: R/cleaning.R

Description

This function filters for the following ethnicities in ACS data: White Alone, Not Hispanic or Latino; Black or African American Alone; Hispanic or Latino

Usage

1
ff_acs_ethnicity(df, ethnicity_column)

Arguments

df

Dataframe of ACS data

ethnicity_column

Column name that contains race / ethnicity phrase

Details

It also cleans the race / ethnicity name to match FF standards.

Value

The dataframe inputted into the function, but only the rows with race / ethnicity information for White Alone, Not Hispanic or Latino; Black or African American Alone; and Hispanic or Latino remain

Examples

1
ff_acs_ethnicity(df, description)

forsythfuture/FFtools documentation built on Aug. 2, 2019, 10:09 p.m.