Imports data on a given epetition. For bulk epetion data,
see epetition_tibble().
Usage
epetition(
ID = NULL,
by_constituency = FALSE,
extra_args = NULL,
tidy = TRUE,
tidy_style = "snake",
verbose = TRUE
)
hansard_epetition(
ID = NULL,
by_constituency = FALSE,
extra_args = NULL,
tidy = TRUE,
tidy_style = "snake",
verbose = TRUE
)Arguments
- ID
The ID of a given petition. If
NULL, returns all epetitions. Defaults toNULL. Seeepetition_tibble()for a greater degree of flexibility when querying all epetitions.- by_constituency
Accepts either
TRUEorFALSE. IfTRUE, provides a tibble with a breakdown of signatures for each petition, by constituency. Defaults toFALSE.- 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
NULL.- tidy
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 toTRUE.- tidy_style
The style to convert variable names to, if
tidy = TRUE. Accepts any style accepted by to_any_case. Defaults to'snake'.- verbose
If
TRUE, displayes messages on the console on the progress of the API request. Defaults toTRUE.
