Description Usage Arguments Value Examples
Function to get vote count data aggregated by strata, geographic region, or party estimates from the AP voter analysis tool
1 2 3 4 5 6 7 8 |
key |
Supplied API key |
test |
TRUE/FALSE. Whether to use test data (TRUE) or production data (FALSE). Defaults to FALSE. |
report |
The type of VAT report to get data from. Options include: CountyGeoStrata, CountyPartyStrataEstimates, CountyGeoStrataEstimates, CountyPartyStatewideEstimates, CountyGeoStatewideEstimates |
date |
date of the election in ISO format, e.g. "2020-02-03". Defaults to Sys.Date() |
Returns a tidy dataframe of VAT results
1 | vat_test <- get_vat(report = "CountyGeoStrata", key = "key = Sys.getenv("apelex_api_key"), date = "2020-02-03)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.