Description Usage Arguments Value Examples
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.
1 | append_poverty_data(ID_var, pov_column)
|
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 |
A vector of poverty data, in the same order as original dataset
1 2 | NEA$poverty_rate<-NA
NEA$poverty_rate<-append_poverty_data(NEA$CT_GEOID, NEA$poverty_rate)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.