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


[Up] [Top]

Documentation for package ‘pvsR’ version 0.3

Help Pages

CandidateBio.getAddlBio Get a candidate's additional biographical information
CandidateBio.getBio Get a candidate's main biographical information
CandidateBio.getDetailedBio Get a candidate's detailed biographical information
Candidates.getByDistrict Get a list of candidates according to the district they represent
Candidates.getByElection Get a list of candidates according to the election they are running for
Candidates.getByLastname Get a list of candidates according to their lastname
Candidates.getByLevenshtein Get a list of candidates according to an approximate lastname match
Candidates.getByOfficeState Get a list of candidates according to office and state representation
Candidates.getByOfficeTypeState Get a list of candidates according to office type and state representation
Candidates.getByZip Get a list of candidates according to ZIP code
Committee.getCommittee Get detailed committee (contact) information
Committee.getCommitteeMembers Get a list of members of a committee
Committee.getCommitteesByTypeState Get a list of committees according to type and state
Committee.getTypes Get the committee types (house, senate, joint, etc.)
District.getByOfficeState Get district IDs according to the office and state
District.getByZip Get district IDs according to the zip code
Election.getElection Get district basic election data
Election.getElectionByYearState Get district basic election data according to year and state ID
Election.getElectionByZip Get district basic election data according to the ZIP code
Election.getStageCandidates Get district basic election data according to election ID and stage ID
getAllBios Get several candidates' biographical information
getAllCities Get basic data on all cities
getAllCounties Get basic data on all counties
getAllDistricts Get basic data on all districts
getAllLocalOfficials Fetch data on all local (city- or county-) officials
getAllVotes Get several votes
getOffices Get basic data on all offices
Leadership.getOfficials Get officials that hold the leadership role in certain states
Leadership.getPositions Get leadership positions by state and office
Local.getCities Get cities in a state
Local.getCounties Get counties in a state
Local.getOfficials Get officials for a locality
Measure.getMeasure Get details of a ballot measure
Measure.getMeasuresByYearState Get a list of state ballot measures in a given year
Npat.getNpat Get a candidate's most recently filled out NPAT/PCT (Political Courage Test)
Office.getBranches Get a list of branches of government and their IDs
Office.getLevels Get a list of levels of government and their IDs
Office.getOfficesByBranchLevel Get offices tracked according to branch and level
Office.getOfficesByLevel Get offices tracked according to level
Office.getOfficesByType Get offices tracked according to type
Office.getTypes Get all office types tracked
Officials.getByDistrict Get a list of officials according to the district they are running for
Officials.getByLastname Get a list of officials according to a last name match
Officials.getByLevenshtein Get a list of officials according to an approximate last name match
Officials.getByOfficeState Get a list of officials according to office
Officials.getByOfficeTypeState Get a list of officials according to office type and state
Officials.getByZip Get a list of officials according to the ZIP code
Officials.getStatewide Get a list of officials according to state representation
Rating.getCandidateRating Get a candidate's rating by special interest groups
Rating.getCategories Get categories that contain released ratings according to state
Rating.getRating Get all candidate ratings from an evaluation by a special interest group
Rating.getSig Get detailed information about a special interest group
Rating.getSigList Get a list of special interest groups according to rating category and state.
Rating.getSigRatings Get all ratings (scorecards) by a special interest group
State.getState Get information about a state
State.getStateIDs Get a list of states and their IDs.
Votes.getBill Get general information on a bill
Votes.getBillAction Get detailed action information on a certain stage of the bill
Votes.getBillActionVoteByOfficial Get a single vote according to official and action
Votes.getBillActionVotes Get votes listed by candidate on a certain bill action
Votes.getBillsByCategoryYearState Get a list of bills according to category, year and state
Votes.getBillsByOfficialCategoryOffice Get a list of bills according to office, candidate and category
Votes.getBillsByOfficialYearOffice Get a list of bills according to office (optional), candidate and year
Votes.getBillsBySponsorCategory Get a list of bills according to sponsor(candidate) and category
Votes.getBillsBySponsorYear Get a list of bills according to sponsor(candidate) and year
Votes.getBillsByStateRecent Get a list of recent bills according to the state.
Votes.getBillsByYearState Get a list of bills according to year and state
Votes.getByOfficial Get all the bills an official has voted on by year
Votes.getCategories Get a list of categories that contain released bills according to year and state
Votes.getVetoes Get a list of vetoes according to candidate