get_electionid: get_electionid

Description Usage Arguments Value Examples

View source: R/get_electionid.R

Description

This function interacts with the election endpoint of the Google Civic Information API

Usage

1
get_electionid(key = Sys.getenv("google_civic_api"))

Arguments

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

Value

Returns a list of election informations: id, name, date and ocdDivisionID

Examples

1
2
3
4
## Not run: 
get_electionid(key = Sys.getenv("google_civic_api"))

## End(Not run)

willdebras/googlecivic documentation built on Feb. 15, 2021, 6:58 p.m.