Return data on the content, signatories, and sponsors of early day motions (EDMS).
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
)
Accepts the ID number of an early day motion, and returns
data on that motion. If NULL
, returns all available Early Day
Motions. Note that there, are as of 2017-06-15, 43,330 early day motions
on listed in the API, so requesting all early day motions without other
parameters is slow and very demanding on the API itself.
Defaults to NULL
.
Accepts a parliamentary session, in 'yyyy/yy'
format.
Defaults to NULL
.
Only includes early day motions tabled on or after
this date. Accepts character values in 'YYYY-MM-DD'
format, and
objects of class Date
, POSIXt
, POSIXct
,
POSIXlt
or anything else that can be coerced to a date with
as.Date()
. Defaults to '1900-01-01'
.
Only includes early day motions tabled on or before
this date. Accepts character values in 'YYYY-MM-DD'
format,
and objects of class Date
, POSIXt
, POSIXct
,
POSIXlt
or anything else that can be coerced to a date with
as.Date()
. Defaults to the current system date.
The minimum number of signatures required for inclusion in the tibble. Defaults to 1.
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 NULL
.
Logical parameter. If TRUE
, fixes the variable names
in the tibble to remove special characters and superfluous text, and
converts the variable names to a consistent style. Defaults to TRUE
.
The style to convert variable names to, if
tidy = TRUE
. Accepts any style accepted by to_any_case.
Defaults to 'snake'
.
If TRUE
, displayes messages on the console on the
progress of the API request. Defaults to TRUE
.
A tibble with details on the content, signatories and sponsors of all or a specified early day motions.
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.
if (FALSE) {
# 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")
}