A function for retrieving all hearings in a specified parliamentary session.
Arguments
- sessionid
Character string, or a vector of strings, indicating the id of the parliamentary session to retrieve. With several ids, the result is a named list of the results below, keyed by session id.
- good_manners
Numeric. Seconds delay between calls when making multiple calls to the same function. Note that the Stortinget API is limited to 100 calls per minute (see https://data.stortinget.no/nyhetsoversikt/begrensning-pa-api-kall/).
- cores
Integer. Number of cores (1 by default) to use in structuring the data. More than 1 will not work on Windows.
Value
A list with four elements:
$root (hearing meta data)
response_date Date of data retrieval version Data version from the API session_id Session id $hearing (main data on the hearing)
deadline_date Deadline date for hearing status Status of the hearing hearing_id Hearing id input_deadline Deadline date for input written Logical indication of whether the input was written application_deadline Deadline date for application to hearing start_date Start date for hearing status_pub Publication status for hearing status_info_text Status information text type Type of hearing committee_id Committee id for committee responsible for hearing $hearing_case_info (the case(s) belonging to each hearing, by hearing id)
hearing_id Hearing id case_reference Text reference for case case_id Case id case_short_title Short title for case case_publication URL for front end web-page publication case_title Full title for case $hearing_date (the date(s) and place(s) each hearing was held, by hearing id)
hearing_id Hearing id date Date of hearing place Where the hearing was held
Examples
if (FALSE) { # \dontrun{
hear <- get_session_hearings("2010-2011")
head(hear$hearing)
} # }