epetition: epetition

Description Usage Arguments Examples

View source: R/epetition.R

Description

Imports data on Epetitions

Usage

1
2
epetition(ID = NULL, by_constituency = FALSE, extra_args = NULL,
  tidy = TRUE)

Arguments

ID

The ID of a given constituency. If NULL, returns all petitions. Defaults to NULL.

by_constituency

Accepts either TRUE or FALSE. If TRUE, provides a data frame with a breakdown of signatures for each petition, by constituency. Defaults to FALSE.

extra_args

Additional parameters to pass to API. Defaults to NULL.

tidy

Fix the variable names in the data frame to remove extra characters, superfluous text and convert variable names to snake_case. Defaults to TRUE.

Examples

1
2
3
4
5
## Not run: 
x <- epetition(ID = 706964, by_constituency=TRUE)


## End(Not run)


hansard documentation built on May 19, 2017, 8:16 a.m.
Search within the hansard package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.