Learn R Programming

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

Copy Link

Version

Install

install.packages('polidata')

Monthly Downloads

28

Version

0.1.0.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

February 20th, 2019

Functions in polidata (0.1.0.1)

GoogleAPI

R interface for Google Civic API
SunlightAPI

R interface for Sunlight API
apiInfo

Print information about the APIs accessible through polidata
PopongAPI

R interface for Popong API
ShowAPIKeys

Show API Keys
InitPolidata

Initialize polidata