mp_questions {hansard} | R Documentation |
Questions asked by a given MP or MPs
Description
Accepts an ID number for a member of the House of Commons, and returns a tibble of of all their oral and written questions.
Usage
mp_questions(mp_id = NULL, question_type = "all",
start_date = "1900-01-01", end_date = Sys.Date(),
extra_args = NULL, tidy = TRUE, tidy_style = "snake",
verbose = TRUE)
hansard_mp_questions(mp_id = NULL, question_type = "all",
start_date = "1900-01-01", end_date = Sys.Date(),
extra_args = NULL, tidy = TRUE, tidy_style = "snake",
verbose = TRUE)
Arguments
mp_id |
The ID number of a member of the House of Commons, or a vector
of IDs. Defaults to |
question_type |
Accepts the arguments |
start_date |
Only includes questions answered on or after this date.
Accepts character values in |
end_date |
Only includes questions answered on or before this date.
Accepts character values in |
extra_args |
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 |
tidy |
Logical parameter. If |
tidy_style |
The style to convert variable names to, if
|
verbose |
If |
Value
A tibble with details on all questions asked by a member of the House of Commons.
See Also
Examples
## Not run:
x <- mp_questions(c(172, 3967), "all")
y <- mp_questions(mp_id = 172, question_type = "all")
z <- mp_questions(c(172, 3967), "written")
## End(Not run)