Skip to content

Latest commit

 

History

History
62 lines (32 loc) · 2.14 KB

NEWS.md

File metadata and controls

62 lines (32 loc) · 2.14 KB

swissdd 1.1.5

  • fix for get_geodata(geolevel="canton") added

swissdd 1.1.4.999

  • fix for get_geodata(geolevel="zh_counting_districts") and additional checks to ensure functions fail gracefully in case of availability and connection problems.

swissdd 1.1.3

  • 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()

swissdd 1.1.1

  • minor modification to the 'plot_cantonalvotes()'-function to ensure that the function works even when there are no results yet for an upcoming vote.

swissdd 1.1.0

  • major update : new functions to retrieve geodata of voting districts and plot vote results maps have been added by David Zumbach (Thanks a thousand David!)

swissdd 1.0.4

  • the 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.

swissdd 1.0.3

  • broken examples fixed

swissdd 1.0.2

  • 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.

swissdd 1.0.1

  • Added parent level ids to district and municipality level results (canton / district)
  • New function that calculates correlations between votes added: similar_votes()
  • Better error handling with fallback if votedate information provided on opendata.swiss is corrupt
  • Improved speed of data-retrieval. Comparison:

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