mp_edms {hansard} | R Documentation |
Early Day Motions by MP or Peer
Description
Imports data on early day motions signed, sponsored or primarily sponsored by a given MP or Peer.
Usage
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)
Arguments
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 |
Value
A tibble with information on the tibbles signed, sponsored and/or primarily sponsored by the given MP.
See Also
Examples
## 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)