election_results: election_results

Description Usage Arguments Examples

Description

Imports data on general election results

Usage

1
election_results(ID = NULL, extra_args = NULL, tidy = TRUE)

Arguments

ID

Accepts an ID for a general or by-election from the 2010 general election onwards, and returns the results. If NULL, returns all available election results. Defaults to NULL.

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
## Not run: 
x <- election_results(ID=382037)

## End(Not run)


Search within the hansard package
Search all R packages, documentation and source code

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

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

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