Description Usage Arguments Value Examples
get_upcoming_elections
1 2 3  | get_upcoming_elections(election_expire_date_on_or_after = "today",
  is_local = NULL, is_state = NULL, is_national = NULL,
  is_transnational = NULL, elections = 5)
 | 
election_expire_date_on_or_after | 
 a character vector indicating date. Defaults to "today"  | 
is_local | 
 Boolean indicating that the ElectionEvent represents a local election  | 
is_state | 
 Boolean indicating that the ElectionEvent represents a state election  | 
is_national | 
 Boolean indicating that the ElectionEvent represents a national election  | 
is_transnational | 
 Boolean indicating that the ElectionEvent represents a transnational election  | 
elections | 
 an integer, indicating max number of elections to return  | 
data_frame
1 2  | #' get_upcoming_elections(is_state = TRUE, elections = 2)
#' get_upcoming_elections(is_national = TRUE, elections = 5)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.