Description Usage Arguments Value Examples
View source: R/get_electionid.R
This function interacts with the election endpoint of the Google Civic Information API
1 | get_electionid(key = Sys.getenv("google_civic_api"))
|
key |
API key supplied as a string. Defaults to the environmental variable called "google_civic_api." Info on how to get a key can be found here: https://developers.google.com/civic-information |
Returns a list of election informations: id, name, date and ocdDivisionID
1 2 3 4 | ## Not run:
get_electionid(key = Sys.getenv("google_civic_api"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.