Description Usage Arguments Details Value Examples
View source: R/available_votedates.R
available_votedates is a utility function to get the available votedates.
1  | available_votedates(geolevel = "national", call_res)
 | 
geolevel | 
 geographical level for which available votedates should be displayed. options "national" or "canton".  | 
call_res | 
 result of a previous call to the base API. Optional argument.  | 
available_votedates - get available votedates of federal and cantonal popular votes
a vector of votedates (Format: YYYY-MM-DD)
1 2 3  | # Get vector of all available dates
federal_votedates <- available_votedates()
cantonal_votedates <- available_votedates(geolevel = "canton")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.