Read a DRA block assignment export and attach it to 2020 census blocks, optionally collapsing the assignments to a precinct layer.
Arguments
- dra
Path to a DRA CSV export, or a dataframe containing columns
GEOID20andDistrict.- state
State postal abbreviation used to fetch 2020 blocks.
- precincts
Optional
sfobject of precinct shapes. If supplied, the function assigns each precinct the most common block-level district among the blocks matched to it.- epsg
numeric EPSG code to planarize to. Default is 3857.
