constituencies: constituencies

Description Usage Arguments Examples

View source: R/constituencies.R

Description

Imports data on House of Commons constituencies, returning a data frame of all current and former Westminster constituencies.

Usage

1
constituencies(current = TRUE, extra_args = NULL, tidy = TRUE)

Arguments

current

If TRUE, returns only current constituencies. If FALSE, returns all current and former constituencies. Due to the structure of the API, this function has to request all available data, and then subset that data.

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
6
7
8
## Not run: 

x <- constituencies()

x <- constituencies(current = FALSE)


## 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.