Description Usage Arguments Value See Also Examples
Imports data on early day motions signed, sponsored or primarily sponsored by a given MP or Peer.
1 2 3 4 5 6 7 8 9 | mp_edms(mp_id = NULL, primary_sponsor = TRUE, sponsor = TRUE,
signatory = TRUE, full_data = FALSE, start_date = "1900-01-01",
end_date = Sys.Date(), extra_args = NULL, tidy = TRUE,
tidy_style = "snake", verbose = TRUE)
hansard_mp_edms(mp_id = NULL, primary_sponsor = TRUE, sponsor = TRUE,
signatory = TRUE, full_data = FALSE, 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 an MP or Peer. Required parameter, Defaults
to |
primary_sponsor |
Includes all early day motions where the given
member is the primary sponsor in the tibble. Defaults to |
sponsor |
Includes all early day motions where the given member a
sponsor (but not the primary sponsor) in the tibble.
Defaults to |
signatory |
Includes all early day motions signed (but not sponsored
or primarily sponsored) by the given member in the tibble.
Defaults to |
full_data |
If |
start_date |
Only includes early day motions signed on or after this
date. Accepts character values in |
end_date |
Only includes early day motions signed 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 information on the tibbles signed, sponsored and/or primarily sponsored by the given MP.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
# All EDMs primarily sponsored, sponsored or signed by Mike Crockart
x <- mp_edms(
mp_id = 3967, primary_sponsor = TRUE,
sponsor = TRUE, signatory = TRUE
)
# Detailed data on all EDMs primarily sponsored by Mike Crockart
y <- mp_edms(
mp_id = 3967, primary_sponsor = TRUE,
sponsor = TRUE, signatory = FALSE, full_data = TRUE
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.