Creates a block or precinct level dataset from DRA csv output.
dra2r(dra, state, precincts, epsg = 3857)
The path to an exported csv or a dataframe with columns GEOID20 and District, loaded from a DRA export.
the state postal code of the state
an sf dataframe of precinct shapes to link the output to
numeric EPSG code to planarize to. Default is 3857.
sf dataframe either at the block level or precinct level
if (FALSE) {
# Needs Census Bureau API
# dra_utah_test is available at https://bit.ly/3c6UDKk
blocklevel <- dra2r('dra_utah_test.csv', state = 'UT')
}