-
Notifications
You must be signed in to change notification settings - Fork 15
/
grab_crosswalk.Rd
33 lines (30 loc) · 900 Bytes
/
grab_crosswalk.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/grab_crosswalk.R
\name{grab_crosswalk}
\alias{grab_crosswalk}
\title{Download and load LODES geographic crosswalk into a data frame (tibble)}
\usage{
grab_crosswalk(
state,
download_dir = normalizePath(file.path(tools::R_user_dir("lehdr", which = "cache")),
mustWork = FALSE)
)
}
\arguments{
\item{state}{US state abbreviation in lower case, can be a vector of states.}
\item{download_dir}{Directory where lodes table will be downloaded.}
}
\value{
a dataframe (tibble) geographic crosswalk at the block level
}
\description{
Download LODES geographic crosswalk
}
\examples{
\donttest{
# 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'))
}
}