cvap_get {cvap} | R Documentation |
Download Processed Citizen Voting Age Population Data
Description
Downloads processed CVAP data for a state. CVAP data is rounded to the nearest 5 so totals may not sum properly, but will be close.
Usage
cvap_get(
state,
year = 2022,
geography = "block group",
out_file = NULL,
moe = FALSE,
clean = TRUE
)
Arguments
state |
character. The state to get data for or nation for the nation file. |
year |
numeric. Year for the data in 2009 to 2022. |
geography |
character. Level of geography. Default is 'block group'. See Details. |
out_file |
file to save downloaded rds to |
moe |
Include margin of error? Default is FALSE. |
clean |
Should variable names be standardized? Default is TRUE. |
Details
Geography options are
'block group': block group level data
'cd': congressional district data (years 2016+)
'county': county-level data
'place': place-level data
shd': state house district data (years 2016+)
'ssd': state senate district data (years 2016+)
'state': state-level data
'tract': tract-level data
'nation': nation-wide data
Value
tibble of data
Examples
cvap_get('DE')