Description Usage Arguments Value Examples
View source: R/mnis_general_election_results.R
Returns an object containing list with details of the search parameter and a tibble with election results. Accepts queries on location type and name, and the start and end date to return general elections between. The API does not contain data for Norther Ireland.
1 2 3 4 5 6 7 8 | mnis_general_election_results(
location_type = "Country",
location_name = "Great Britain",
start_date = "1900-01-01",
end_date = Sys.Date(),
tidy = TRUE,
tidy_style = "snake_case"
)
|
location_type |
The type of area to return information for. Accepts
|
location_name |
The location to return data for. It can be the name of any Country, Region, County or Constituency. Defaults to 'Great Britain'. |
start_date |
Start date of search. Accepts character values in
|
end_date |
End date of search. Accepts character values in
|
tidy |
If |
tidy_style |
The style to convert variable names to, if
|
Returns a list with details of the search parameter and a tibble with election results.
1 2 3 4 5 6 7 | ## Not run:
x <- mnis_general_election_results(
location_type = "Country", location_name = "England",
start_date = "2010-01-01", end_date = "2016-01-01"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.