Retrieve all speech activity from one MP for a given session
Source:R/get_session_mp_speech_activity.R
get_session_mp_speech_activity.RdA function for retrieving all speech activity from an MP during a specific parliamentary session. Only available from the 2011-2012 session and onwards.
Arguments
- sessionid
Character string, or a vector of strings, indicating the session to retrieve speeches from.
- mpid
Character string, or a vector of strings, for the MP to retrieve all speeches of in a given session. With several sessions and/or MPs, all combinations are retrieved and bound together.
- 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/).
- mp_id
Deprecated; use
mpid.
Value
A data.frame with the following variables:
| response_date | Date of data retrieval |
| version | Data version from the API |
| session_id | Session id |
| mp_id | Id of the MP |
| agenda_case_number | Number indicating the agenda number for the case |
| meeting_id | Meeting id |
| speech_start_time | Start time of speech |
| speech_type | Type of speech |
| speech_length_secs | Length of speech in seconds |
Examples
if (FALSE) { # \dontrun{
activ <- get_session_mp_speech_activity("2012-2013", "ALYS")
head(activ)
} # }