early_day_motions {hansard} | R Documentation |
Early day motion data
Description
Return data on the content, signatories, and sponsors of early day motions (EDMS).
Usage
early_day_motions(edm_id = NULL, session = NULL,
start_date = "1900-01-01", end_date = Sys.Date(), signatures = 1,
extra_args = NULL, tidy = TRUE, tidy_style = "snake",
verbose = TRUE)
hansard_early_day_motions(edm_id = NULL, session = NULL,
start_date = "1900-01-01", end_date = Sys.Date(), signatures = 1,
extra_args = NULL, tidy = TRUE, tidy_style = "snake",
verbose = TRUE)
Arguments
edm_id |
Accepts the ID number of an early day motion, and returns
data on that motion. If |
session |
Accepts a parliamentary session, in |
start_date |
Only includes early day motions tabled on or after
this date. Accepts character values in |
end_date |
Only includes early day motions tabled on or before
this date. Accepts character values in |
signatures |
The minimum number of signatures required for inclusion in the tibble. Defaults to 1. |
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 |
Details
Early Day Motion IDs reset for each parliamentary session, so not including
a query for session
but including an edm_id
will return
multiple early day motions with the same ID code from different
parliamentary sessions.
Value
A tibble with details on the content, signatories and sponsors of all or a specified early day motions.
See Also
Examples
## Not run:
# Returns all EDMs with a given ID
x <- early_day_motions(edm_id = 1073)
# Return a specific early day motion by ID
x <- early_day_motions(edm_id = 1073, session = "2017/19")
## End(Not run)