Skip to contents

A function for retrieving all decisions from a specific parliamentary session.

Usage

get_session_decisions(sessionid = NA, good_manners = 0)

Arguments

sessionid

Character string indicating the id of the session 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
session_idSession id
decision_idDecision id
case_idCase id
case_link_urlURL for case to front end web page
decision_dateDecision date
decision_link_urlURL for decision to front end web page
decision_numberDecision number within session
decision_textDecision text
decision_titleDecision title
decision_type_idDecision type id
decision_type_nameDecision type name

Examples


if (FALSE) {

desci <- get_session_decisions("2004-2005")
head(desci)
}