get_wac_data: get_wac_data

Description Usage Arguments Value Author(s) References Examples

View source: R/lodesR.R

Description

This function enables users to extract datasets on Workplace Area Characteristics (WAC) at a census block level for a chosen state, and for a chosen year between 2002-17. The WAC 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 'workplace area'. This function grabs WAC data for the state and year chosen, and cleans it returning the output as a dataframe.

Usage

1
get_wac_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 WAC data for that state.

year

Users need to give a year between 2002-2017, to enable the function to grab the WAC data for that year, and for the state identified with the state_name argument.

Value

A dataframe of cleaned WAC 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 WAC data for delaware from 2015
df <- get_wac_data("de", "2015")

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