Description Usage Arguments Value See Also Examples
View source: R/election_results.R
Imports results from general and by-elections from the 2010 General Election onwards.
1 2 3 4 5 6 7 8 9 | election_results(ID = NULL, all_data = FALSE,
calculate_percent = FALSE, constit_details = FALSE,
extra_args = NULL, tidy = TRUE, tidy_style = "snake",
verbose = TRUE)
hansard_election_results(ID = NULL, all_data = FALSE,
calculate_percent = FALSE, constit_details = FALSE,
extra_args = NULL, tidy = TRUE, tidy_style = "snake",
verbose = TRUE)
|
ID |
Accepts an ID for a general or by-election from the 2010 General
Election onwards, and returns the results. If |
all_data |
If |
calculate_percent |
If |
constit_details |
If |
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 |
tidy |
Logical parameter. If |
tidy_style |
The style to convert variable names to, if
|
verbose |
If |
A tibble with the results of all general and by-elections, or of a specified general election or by-election.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
x <- election_results(ID = 382037)
y <- election_results()
z <- election_results(calculate_percent = TRUE, constit_details = TRUE)
w <- election_results(ID = 730039, all_data = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.