Data and code for the visualization of the voting pattern of the German parliament
Batchfile R Visual Basic
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
Data_persons.RDS
Data_vote.X.person.RDS
Data_votes.RDS
README.md
analysis.R
bundestag_aux_functions.R
file_and_vote.csv
preprocessing.R
winbatch_ex.cmd

README.md

bundestag

Data and code for the visualization of the voting pattern of the German parliament

preprocessing.R takes the data downloaded from bundestag.de and preprocesses them in the the following three data files:

  • Data_persons.RDS, a 139 (bills) x 659 (members of parliament) table
  • Data_vote.X.person.RDS and, a 659 (members of parliament) x 3 (given name, surname, party) table
  • Data_votes.RDS, a a 139 (bills) x 4 (data file, title of bill, date voted, days from day 1) table

analysis.R uses these three data files to produce all figures shown in the post here: http://jmbh.github.io/Analyzing-voting-pattern-of-German-parliament/

bundestag_aux_functions.R is sourced by analysis.R and contains functions used in analysis.R.