Learn R Programming

swissdd (version 1.1.4)

Get Swiss Federal and Cantonal Vote Results from Opendata.swiss

Description

Builds upon the real time data service as well as the archive for national votes and cantonal votes . It brings the results of Swiss popular votes, aggregated at the geographical level of choice, into R. Additionally, it allows to retrieve data from the Swissvotes-Database, one of the most comprehensive data platforms on Swiss referendums and initiatives .

Copy Link

Version

Install

install.packages('swissdd')

Monthly Downloads

20

Version

1.1.4

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Thomas Lo Russo

Last Published

July 17th, 2021

Functions in swissdd (1.1.4)

similar_votes

Obtain similarities a vote result shares with other votes
get_cantonalvotes

Get cantonal results and counting status in real time or for selected dates or a time range in the past
swiss_json_to_dfr

Transform an opendata.swiss national results json into a tibble
get_geodata

Get Swiss Geodata
canton_json_to_dfr

Transform a opendata.swiss cantonal results json into a tibble
available_votedates

Get a vector of available vote dates via `get_nationalvotes` and `get_cantonalvotes``
get_nationalvotes

Get national results and counting status in real time or for selected dates or a time range in the past
get_poll

Download poll data collected after a national vote by gfs.bern and the political science departements of the universities of Berne, Zurich, and Geneva.
plot_cantonalvotes

Plot Cantonal Votes
keys

Merge data
get_swissvotes

Download additional data collected by annee politique suisse (the complete SwissVotes-Database)
plot_nationalvotes

Plot National Votes