Learn R Programming

elexr

Simple R wrapper around elex for loading Associated Press elections results.

Assumptions

  • Associated Press Elections API key
  • elex
  • devtools R package

Installation

First, install elex, following these instructions.

Then use devtools to install this from GitHub:

> library(devtools)
> install_github("ghing/elexr")

Usage

> library(elexr)
> Sys.setenv(AP_API_KEY = "YOUR_AP_API_KEY")
> iowa_caucus_results <- results('02-01-2016')

Copy Link

Version

Install

install.packages('elexr')

Monthly Downloads

185

Version

1.0

License

MIT + file LICENSE

Maintainer

Geoff Hing

Last Published

February 4th, 2016

Functions in elexr (1.0)

results

Fetch election results
elexr-package

Load Associated Press Election Results with Elex