Download a state-year VEST precinct file from Harvard Dataverse.

get_vest(state, year, path = tempdir(), clean_names = TRUE, epsg = 3857, ...)

Arguments

state

Two-letter state abbreviation.

year

Election year, currently one of 2016 through 2021.

path

Directory used for extracted files. Defaults to tempdir().

clean_names

Logical. If TRUE, rename election columns into a more consistent scheme.

epsg

numeric EPSG code to planarize to. Default is 3857.

...

Additional arguments passed to sf::read_sf().

Value

sf tibble containing the requested VEST dataset

Examples

if (FALSE) { # \dontrun{
# Requires Dataverse API
shp <- get_vest('CO', 2020)
} # }