Description Usage Arguments Value Examples
View source: R/election-data-helpers.R
Fetches election results in the format that you probably want for plotting. For more complex operations, use joins of results, ridings, and/or boundaries. Note that in elections before 1968 there was more than one MP elected from several ridings.
1 2 3 4 5 | election_results(
years = election_years(),
provinces = election_provinces(),
results = c("Elected", "Defeated")
)
|
years |
One or more |
provinces |
One or more |
results |
One or both of "Elected" and/or "Defeated" to include in the data |
A tibble::tibble()
of a join between results and ridings.
1 2 3 4 | election_results(
years = 2015:2019,
provinces = c("Nova Scotia", "New Brunswick")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.