Description Usage Arguments Value See Also Examples
Accepts an ID number for a member of the House of Commons, and returns a tibble of of all their oral and written questions.
1 2 3 4 5 6 7 8 9 | 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)
|
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 |
A tibble with details on all questions asked by a member of the House of Commons.
1 2 3 4 5 6 7 8 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.