Skip to contents

A function for retrieving all votes from a case. Vote data are only available from the 2011-2012 session

Usage

get_vote(caseid = NA, good_manners = 0)

Arguments

caseid

Character string indicating the id of the case to request all votes from

good_manners

Integer. Seconds delay between calls when making multiple calls to the same function

Value

A data.frame with the following variables:

response_dateDate of data retrieval
versionData version from the API
case_idCase id up for vote
alternative_voteWhether vote is an alternative vote
n_forNumber of votes for
n_absentNumber of MPs absent
n_againstNumber of votes against
treatment_orderOrder of treated votes
agenda_case_numberCase number on the agenda of the meeting
free_voteLogical indication of whether the vote is related to the case as a whole
commentVote comment
meeting_map_numberNumber on the meeting map
personal_voteLogical indication of whether vote was recorded as roll call or not
president_idId of president holding president chair at the time of voting
president_party_idParty of the sitting president
adoptedLogical indication of whether the proposal voted on was adopted
vote_idId of vote
vote_methodVoting method
vote_result_typeResult type (enstemmig_vedtatt = unanimously adopted)
vote_result_type_textSee vote_result_type
vote_topicDescription of the proposal voted upon
vote_datetimeDate and time of vote

Examples


if (FALSE) {

get_vote(63033)

}