Imports data on House of Commons oral question times. Query with parameters
for the parliamentary session or the question ID. If tidy=TRUE
,
datetime variables are converted to POSIXct
class.
commons_oral_question_times(session = NULL, question_id = NULL,
extra_args = NULL, tidy = TRUE, tidy_style = "snake_case",
verbose = TRUE)hansard_commons_oral_question_times(session = NULL, question_id = NULL,
extra_args = NULL, tidy = TRUE, tidy_style = "snake_case",
verbose = TRUE)
Accepts a session in format yyyy/yy
(e.g. 2016/17
) and returns a tibble of all oral question times from
that session. Defaults to NULL
.
Accepts a question time ID, and returns a tibble of that question time.
Additional parameters and queries to pass to API. These
queries must be strings and start with "&". See the
API documentation
or the package vignette for more details. Defaults to NULL
.
Logical parameter. If TRUE
, fixes the variable names
in the tibble to remove special characters and superfluous text, and
converts the variable names to a consistent style. Defaults to TRUE
.
The style to convert variable names to, if
tidy = TRUE
. Accepts one of 'snake_case'
, 'camelCase'
and 'period.case'
. Defaults to 'snake_case'
.
If TRUE
, returns data to console on the progress
of the API request. Defaults to TRUE
.
A tibble with information on oral question times in the House of Commons.
# NOT RUN {
x <- commons_oral_question_times(session='2016/17', question_id='685697')
# }
Run the code above in your browser using DataLab