get_wac_spatial: get_wac_spatial

Description Usage Arguments Value Author(s) References Examples

View source: R/lodesR.R

Description

This function allows users to convert output dataframe(s) of get_wac_data or get_jobsector_wac into simple features, by joining the dataframe onto a census block simple feature for the state of interest, using the TIGRIS package to obtain the census blocks sf.

Usage

1

Arguments

df

This function requires as input a cleaned WAC dataframe either as a direct output of get_wac_data, or of get_jobsector_wac.

Value

Returns WAC data in a spatial (simple features) format, that can be easily manipulated, mapped or used in spatial operations.

Author(s)

Ballantyne, Patrick

References

LODES data available to download manually from: https://lehd.ces.census.gov/data/lodes/LODES7/ For more information on the TIGRIS package visit: https://CRAN.R-project.org/package=tigris

Examples

1
2
3
4
5
## Obtain a WAC dataset
df <- get_wac_data("ak", "2013")

## Convert to simple features
sf <- get_wac_spatial(df)

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