Imports data on a given epetition. For bulk epetion data,
see epetition_tibble
.
epetition(ID = NULL, by_constituency = FALSE, extra_args = NULL,
tidy = TRUE, tidy_style = "snake_case", verbose = TRUE)hansard_epetition(ID = NULL, by_constituency = FALSE, extra_args = NULL,
tidy = TRUE, tidy_style = "snake_case", verbose = TRUE)
The ID of a given petition. If NULL
, returns all
epetitions. Defaults to NULL
. See epetition_tibble
for a greater degree of flexibility when querying all epetitions.
Accepts either TRUE
or FALSE
.
If TRUE
, provides a tibble with a breakdown of signatures for
each petition, by constituency. Defaults to FALSE
.
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 one of 'snake_case'
, 'camelCase'
and 'period.case'
. Defaults to 'snake_case'
.
If TRUE
, returns data to console on the progress
of the API request. Defaults to TRUE
.
A tibble with details on electronic petitions submitted to parliament.
# NOT RUN {
x <- epetition(ID = 706964, by_constituency=TRUE)
# }
Run the code above in your browser using DataLab