View source: R/election_get_election_by_year_state.R
election_get_election_by_year_state | R Documentation |
Get election info by election year and state
election_get_election_by_year_state(
years = lubridate::year(lubridate::today()),
state_ids = "",
all = TRUE,
verbose = TRUE
)
years |
A vector of election years. |
state_ids |
A vector of state abbreviations. |
all |
Boolean: should all possible combinations of the variables be searched for, or just the exact combination of them in the order they are supplied? |
verbose |
Should cases when no data is available be messaged? |
A dataframe of candidates and their attributes. If a given year
+ state_id
returns no data, that row will be filled with NA
s.
## Not run:
election_get_election_by_year_state(years = c(2016, 2017))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.