Description Usage Arguments Value Author(s) References Examples
This function enables users to extract datasets on Residence Area Characteristics (RAC) at a census block level for a chosen state, and for a chosen year between 2002-17. The RAC dataset(s) give employment estimates for a variety of specific job sectors (e.g. manufacturing), and estimates of total jobs, for each census block that is classified as a 'residence area'. This function grabs RAC data for the state and year chosen, and cleans it returning the output as a dataframe.
1 | get_rac_data(state_name, year)
|
state_name |
Users need to give the lowercase abbreviated state name of any US state, to enable the function to grab RAC data for that state. |
year |
Users need to give a year between 2002-2017, to enable the function to grab the RAC data for that year, and for the state identified with the state_name argument. |
A dataframe of cleaned RAC data for the chosen state and chosen year.
Ballantyne, Patrick
LODES data available to download manually from: https://lehd.ces.census.gov/data/lodes/LODES7/
1 2 | ## e.g. Get RAC data for New Jersey from 2008
df <- get_rac_data("nj", "2008")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.