Learn R Programming

⚠️There's a newer version (0.3) of this package.Take me there.

pvsR (version 0.1.1)

An R package to interact with the Project Vote Smart API for scientific research

Description

The pvsR package facilitates data retrieval from Project Vote Smart's rich online data base on US politics via the Project Vote Smart application programming interface (PVS API). The functions in this package cover most PVS API classes and methods and return the requested data in a data frame.

Copy Link

Version

Install

install.packages('pvsR')

Monthly Downloads

16

Version

0.1.1

License

GPL-2

Maintainer

Ulrich Matter

Last Published

June 27th, 2013

Functions in pvsR (0.1.1)

Election.getElection

Get district basic election data
State.getStateIDs

Get a list of states and their IDs.
Office.getLevels

Get a list of levels of government and their IDs
Committee.getCommittee

Get detailed committee (contact) information
Office.getBranches

Get a list of branches of government and their IDs
District.getByOfficeState

Get district IDs according to the office and state
Office.getTypes

Get all office types tracked
CandidateBio.getAddlBio

Get a candidate's additional biographical information
Rating.getRating

Get all candidate ratings from an evaluation by a special interest group
State.getState

Get information about a state
Rating.getSig

Get detailed information about a special interest group
Committee.getTypes

Get the committee types (house, senate, joint, etc.)
Votes.getBillsBySponsorYear

Get a list of bills according to sponsor(candidate) and year
Officials.getByOfficeTypeState

Get a list of officials according to office type and state
Rating.getCandidateRating

Get a candidate's rating by special interest groups
Votes.getBillAction

Get detailed action information on a certain stage of the bill
Votes.getCategories

Get a list of categories that contain released bills according to year and state
Candidates.getByOfficeState

Get a list of candidates according to office and state representation
Candidates.getByDistrict

Get a list of candidates according to the district they represent
Candidates.getByZip

Get a list of candidates according to ZIP code
Committee.getCommitteeMembers

Get a list of members of a committee
Candidates.getByOfficeTypeState

Get a list of candidates according to office type and state representation
Officials.getByLastname

Get a list of officials according to a last name match
Measure.getMeasure

Get details of a ballot measure
District.getByZip

Get district IDs according to the zip code
Office.getOfficesByType

Get offices tracked according to type
Rating.getCategories

Get categories that contain released ratings according to state
Leadership.getPositions

Get leadership positions by state and office
Votes.getBillsBySponsorCategory

Get a list of bills according to sponsor(candidate) and category
Votes.getBillActionVotes

Get votes listed by candidate on a certain bill action
Election.getElectionByYearState

Get district basic election data according to year and state ID
Office.getOfficesByBranchLevel

Get offices tracked according to branch and level
redlist

Reduce a nested list
Officials.getStatewide

Get a list of officials according to state representation
Rating.getSigList

Get a list of special interest groups according to rating category and state.
Election.getElectionByZip

Get district basic election data according to the ZIP code
Votes.getByOfficial

Get all the bills an official has voted on by year
Votes.getBillsByCategoryYearState

Get a list of bills according to category, year and state
Local.getCities

Get cities in a state
Officials.getByDistrict

Get a list of officials according to the district they are running for
Committee.getCommitteesByTypeState

Get a list of committees according to type and state
Candidates.getByElection

Get a list of candidates according to the election they are running for
Officials.getByLevenshtein

Get a list of officials according to an approximate last name match
Officials.getByOfficeState

Get a list of officials according to office
CandidateBio.getBio

Get a candidate's main biographical information
Election.getStageCandidates

Get district basic election data according to election ID and stage ID
Leadership.getOfficials

Get officials that hold the leadership role in certain states
Local.getCounties

Get counties in a state
Office.getOfficesByLevel

Get offices tracked according to level
Rating.getSigRatings

Get all ratings (scorecards) by a special interest group
Votes.getBillsByStateRecent

Get a list of recent bills according to the state.
Votes.getBillsByOfficialYearOffice

Get a list of bills according to office (optional), candidate and year
Votes.getBillsByOfficialCategoryOffice

Get a list of bills according to office, candidate and category
dfList

Harmonize and combine different data frames in a list
Votes.getBillActionVoteByOfficial

Get a single vote according to official and action
Local.getOfficials

Get officials for a locality
Officials.getByZip

Get a list of officials according to the ZIP code
Votes.getBill

Get general information on a bill
Candidates.getByLevenshtein

Get a list of candidates according to an approximate lastname match
Measure.getMeasuresByYearState

Get a list of state ballot measures in a given year
Candidates.getByLastname

Get a list of candidates according to their lastname
Votes.getBillsByYearState

Get a list of bills according to year and state
Votes.getVetoes

Get a list of vetoes according to candidate