grab_crosswalk: Download and load LODES geographic crosswalk into a data...

View source: R/grab_crosswalk.R

grab_crosswalkR Documentation

Download and load LODES geographic crosswalk into a data frame (tibble)

Description

Download LODES geographic crosswalk

Usage

grab_crosswalk(
  state,
  download_dir = normalizePath(file.path(tools::R_user_dir("lehdr", which = "cache")),
    mustWork = FALSE)
)

Arguments

state

US state abbreviation in lower case, can be a vector of states.

download_dir

Directory where lodes table will be downloaded.

Value

a dataframe (tibble) geographic crosswalk at the block level

Examples


# Download and load current geographic crosswalk for Alaska
alaska_xwalk <- grab_crosswalk("VT")

# Download and load current geographic crosswalk for small states
small_states_xwalk <- grab_crosswalk(c("wy", 'ND', 'SD'))



lehdr documentation built on Nov. 27, 2023, 5:11 p.m.