cvap_get | R Documentation |
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.
cvap_get(
state,
year = 2021,
geography = "block group",
out_file = NULL,
moe = FALSE,
clean = TRUE
)
state |
character. The state to get data for or nation for the nation file. |
year |
numeric. Year for the data in 2009 to 2021. |
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. |
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
tibble of data
cvap_get('DE')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.