get_geodata(geolevel="canton")
added get_geodata(geolevel="zh_counting_districts")
and additional checks to ensure functions fail gracefully in case of availability and connection problems.fix for get_geodata() / plot_nationalvotes()
gentle failure of the swissdd-function in case of errors in the data source / problems with the API
bug fixes for get_geodata() / plot_nationalvotes()
canton_json_to_dfr
has been adapted to work with the altered data structure of the json files provided via opendata.swiss containing the cantonal vote results.Functions renamed (breaking change): to retrieve real time or archive results data via opendata.swiss, the function get_nationalvotes
must be used. get_swissvotes
is turned into the function that allows to get Swissvotes-Data.
New function that allows to retrieve Swissvotes-Data added (get_swissvotes
)
option to retrieve counting district level data with the get_nationalvotes()
- and get_cantonalvotes()
-functions added (affects Zurich and Winterthur only)
functions adapted to new tidyr API, the package now depends on tidyr >= 1.0.0.
similar_votes()
system.time(get_swissvotes(to_date="1983-12-04"))
user system elapsed
2.492 0.160 47.024
comparison with swissdd version 1.0.0
user system elapsed
3.120 0.276 64.693
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.