Skip to contents

A function for retrieving all hearings in a specified parliamentary session.

Usage

get_session_hearings(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...

Value

A list with four elements:

  1. $root (hearing meta data)

    response_dateDate of data retrieval
    versionData version from the API
    session_idSession id
  2. $hearing (main data on the hearing)

    deadline_dateDeadline date for hearing
    statusData version from the API
    hearing_idHearing id
    input_deadlineDeadline date for input
    writtenLogical indication of whether the input was written
    application_deadlineDeadline date for application to hearing
    start_dateStart date for hearing
    status_pubPublication status for hearing
    status_info_textStatus information text
    typeType of hearing
    committee_idCommittee id for committee responsible for hearing
  3. $hearing_case_info (named list by hearing id with information on the case(s) belonging to the hearing)

    hearing_idHearing id
    case_referenceText reference for case
    case_idCase id
    case_short_titleShort title for case
    case_publicationURL for front end web-page publication
    case_titleFull title for case
  4. $hearing_date (named list by hearing id with date(s) the hearing was held)

    hearing_idHearing id
    dateDate of hearing
    placeWhere the hearing was held

Examples


if (FALSE) { # \dontrun{

hear <- get_session_hearings("2010-2011")
head(hear$hearing)

} # }