Skip to contents

Read a state-year RDH precinct file.

Usage

read_rdh(file, path = tempdir(), clean_names = TRUE, epsg = 3857, ...)

Arguments

file

Path to an RDH file, either zipped or a file readable by sf::read_sf(), such as a .shp.

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 RDH dataset

Examples

if (FALSE) { # \dontrun{
shp <- read_rdh('in_2024_gen_prec.zip')
} # }