ff_acs_ethnicity: Filter for race / ethnicity rows in ACS data

View source: R/cleaning.R

ff_acs_ethnicityR Documentation

Filter for race / ethnicity rows in ACS data

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

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

ff_acs_ethnicity(df, description)


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