append_poverty_data: Appends Poverty Data to main Data file

Description Usage Arguments Value Examples

Description

This function makes it easy to append 2011-2015 poverty rate data from the 5 year ACS to another dataset. To use, just create a new column in the original data to store the poverty rate data, and identify which column in the original data has the census tract ID variables. The function will do the rest.

Usage

1
append_poverty_data(ID_var, pov_column)

Arguments

ID_var

column in data frame with CT ids, i.e. NEA$CT_GEOID

pov_column

the name of the column in the dataset to append poverty data to

Value

A vector of poverty data, in the same order as original dataset

Examples

1
2
NEA$poverty_rate<-NA
NEA$poverty_rate<-append_poverty_data(NEA$CT_GEOID, NEA$poverty_rate)

gmellon/neaR documentation built on May 14, 2019, 2:42 p.m.