README.md

polidata

Political data. In R. This package provides easy access to various political data APIs.

Usage

Get API keys.

Install polidata from source.

install.packages("/path/to/polidata", type="source", repos=NULL)

Import polidata, and initialize with API keys.

library("polidata")
InitPolidata()

To set an individual API key, options(GoogleAPIKey='some_key')

Call API with method type.

PopongAPI("bill")
PopongAPI("party")
PopongAPI("person")
SunlightAPI("legislators")
SunlightAPI("committees")
SunlightAPI("bills")
SunlightAPI("votes")

License

MIT



Try the polidata package in your browser

Any scripts or data that you put into this service are public.

polidata documentation built on May 2, 2019, 6:54 a.m.