get_session_cases: Cases in specified session

View source: R/get_session_cases.R

get_session_casesR Documentation

Cases in specified session

Description

A function for retrieving all cases treated in a specified parliamentary session.

Usage

get_session_cases(sessionid = NA, good_manners = 0, cores = 1)

Arguments

sessionid

Character string indicating the id of the parliamentary session to retrieve.

good_manners

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

cores

Integer. Number of cores (1 by default) to use in structuring the data. More than 1 will not work on windows

Value

A data.frame with the following variables:

  1. $root (main data on the MP)

    response_date Date of data retrieval
    version Data version from the API
    treated_session_id Session the case was treated in
    document_group Document group the case belongs to
    reference Document reference
    id Case id
    com_req_id Committee recommendation id
    com_req_code Committee recommendation code
    title_short Short title of case
    case_filed_id Id of filed case
    last_update_date Date of last update on case
    status Status of the case
    title Full title of the case
    type Type of case
    session_id Session id of the case
    committee_id Responsible committee id
  2. $topics (named list by case id)

    is_main_topic Logical indication whether the topic is the main topic
    main_topic_id Id of the main topic for the case
    id Topic id
    name Topic name
  3. $proposers (named list by case id)

    rep_id Proposing MP id
    county_id County id of proposing MP
    party_id Party id of proposing MP
    rep_sub Logical indicator for whether MP is a substitute
  4. $spokespersons (named list by case id)

    rep_id Spokesperson MP id
    county_id County id of spokesperson MP
    party_id Party id of spokesperson MP
    rep_sub Logical indicator for whether MP is a substitute

See Also

get_case get_vote

Examples


## Not run: 
s0506 <- get_session_cases("2005-2006")
head(s0506)

## End(Not run)


stortingscrape documentation built on March 31, 2023, 10:30 p.m.