get_rac_data: get_rac_data

Description Usage Arguments Value Author(s) References Examples

View source: R/lodesR.R

Description

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.

Usage

1
get_rac_data(state_name, year)

Arguments

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.

Value

A dataframe of cleaned RAC data for the chosen state and chosen year.

Author(s)

Ballantyne, Patrick

References

LODES data available to download manually from: https://lehd.ces.census.gov/data/lodes/LODES7/

Examples

1
2
## e.g. Get RAC data for New Jersey from 2008
df <- get_rac_data("nj", "2008")

patrickballantyne/tidylodes documentation built on June 1, 2020, 1:12 p.m.