available_votedates: Get a vector of available vote dates via 'get_nationalvotes'...

Description Usage Arguments Details Value Examples

View source: R/available_votedates.R

Description

available_votedates is a utility function to get the available votedates.

Usage

1
available_votedates(geolevel = "national", call_res)

Arguments

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.

Details

available_votedates - get available votedates of federal and cantonal popular votes

Value

a vector of votedates (Format: YYYY-MM-DD)

Examples

1
2
3
# Get vector of all available dates
federal_votedates <- available_votedates()
cantonal_votedates <- available_votedates(geolevel = "canton")

swissdd documentation built on July 17, 2021, 9:06 a.m.