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

Share:

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.

Author
Ulrich Matter
Date of publication
2014-09-23 09:53:40
Maintainer
Ulrich Matter <ulrich.matter@unibas.ch>
License
GPL-2
Version
0.3

View on CRAN

Man 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...
Candidates.getByElection
Get a list of candidates according to the election they are...
Candidates.getByLastname
Get a list of candidates according to their lastname
Candidates.getByLevenshtein
Get a list of candidates according to an approximate lastname...
Candidates.getByOfficeState
Get a list of candidates according to office and state...
Candidates.getByOfficeTypeState
Get a list of candidates according to office type and state...
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...
Election.getElectionByZip
Get district basic election data according to the ZIP code
Election.getStageCandidates
Get district basic election data according to election ID and...
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...
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...
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...
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...
Rating.getRating
Get all candidate ratings from an evaluation by a special...
Rating.getSig
Get detailed information about a special interest group
Rating.getSigList
Get a list of special interest groups according to rating...
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...
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...
Votes.getBillsByOfficialYearOffice
Get a list of bills according to office (optional), candidate...
Votes.getBillsBySponsorCategory
Get a list of bills according to sponsor(candidate) and...
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...
Votes.getVetoes
Get a list of vetoes according to candidate

Files in this package

pvsR
pvsR/inst
pvsR/inst/CITATION
pvsR/NAMESPACE
pvsR/NEWS
pvsR/R
pvsR/R/Votes.getBillsByYearState.R
pvsR/R/Local.getOfficials.R
pvsR/R/Votes.getCategories.R
pvsR/R/Office.getBranches.R
pvsR/R/Rating.getCategories.R
pvsR/R/pvsRequest6.R
pvsR/R/pvsRequest5.R
pvsR/R/getAllVotes.R
pvsR/R/Votes.getBillsByOfficialYearOffice.R
pvsR/R/Committee.getCommittee.R
pvsR/R/getAllDistricts.R
pvsR/R/pvsRequest9.1.R
pvsR/R/pvsRequest6.1b.R
pvsR/R/Officials.getStatewide.R
pvsR/R/Election.getElection.R
pvsR/R/CandidateBio.getDetailedBio.R
pvsR/R/Officials.getByLastname.R
pvsR/R/Votes.getByOfficial.R
pvsR/R/Votes.getBillsByCategoryYearState.R
pvsR/R/Candidates.getByLevenshtein.R
pvsR/R/Measure.getMeasure.R
pvsR/R/Officials.getByOfficeTypeState.R
pvsR/R/Rating.getRating.R
pvsR/R/State.getStateIDs.R
pvsR/R/Votes.getBillAction.R
pvsR/R/getAllCounties.R
pvsR/R/Officials.getByLevenshtein.R
pvsR/R/pvsRequestDetailedBio.R
pvsR/R/CandidateBio.getAddlBio.R
pvsR/R/Leadership.getOfficials.R
pvsR/R/Votes.getBillsByStateRecent.R
pvsR/R/Rating.getSig.R
pvsR/R/getAllBios.R
pvsR/R/Rating.getCandidateRating.R
pvsR/R/Candidates.getByOfficeState.R
pvsR/R/Election.getElectionByZip.R
pvsR/R/Officials.getByZip.R
pvsR/R/pvsRequest8.R
pvsR/R/Committee.getCommitteeMembers.R
pvsR/R/Committee.getTypes.R
pvsR/R/Rating.getSigRatings.R
pvsR/R/Votes.getBillsBySponsorYear.R
pvsR/R/pvsRequest9.R
pvsR/R/Election.getElectionByYearState.R
pvsR/R/District.getByOfficeState.R
pvsR/R/Local.getCounties.R
pvsR/R/State.getState.R
pvsR/R/Votes.getBillActionVoteByOfficial.R
pvsR/R/getOffices.R
pvsR/R/getAllLocalOfficials.R
pvsR/R/pvsRequest6.1.R
pvsR/R/CandidateBio.getBio.R
pvsR/R/Office.getOfficesByBranchLevel.R
pvsR/R/Candidates.getByZip.R
pvsR/R/Votes.getBillActionVotes.R
pvsR/R/Officials.getByOfficeState.R
pvsR/R/Votes.getBillsByOfficialCategoryOffice.R
pvsR/R/getAllCities.R
pvsR/R/Office.getOfficesByType.R
pvsR/R/Office.getTypes.R
pvsR/R/pvsRequest7.1.R
pvsR/R/Measure.getMeasuresByYearState.R
pvsR/R/dfList.R
pvsR/R/pvsRequest4.1.R
pvsR/R/Candidates.getByElection.R
pvsR/R/Election.getStageCandidates.R
pvsR/R/pvsRequest3.R
pvsR/R/Votes.getBillsBySponsorCategory.R
pvsR/R/Votes.getBill.R
pvsR/R/pvsrRequest10.R
pvsR/R/Local.getCities.R
pvsR/R/Office.getOfficesByLevel.R
pvsR/R/Candidates.getByDistrict.R
pvsR/R/Office.getLevels.R
pvsR/R/pvsRequest.R
pvsR/R/District.getByZip.R
pvsR/R/Candidates.getByLastname.R
pvsR/R/Leadership.getPositions.R
pvsR/R/pvsRequest4.R
pvsR/R/redlist.R
pvsR/R/pvsRequest_PCT.R
pvsR/R/Votes.getVetoes.R
pvsR/R/Candidates.getByOfficeTypeState.R
pvsR/R/Npat.getNpat.R
pvsR/R/Committee.getCommitteesByTypeState.R
pvsR/R/Officials.getByDistrict.R
pvsR/R/Rating.getSigList.R
pvsR/MD5
pvsR/DESCRIPTION
pvsR/man
pvsR/man/Election.getElection.Rd
pvsR/man/State.getState.Rd
pvsR/man/getAllDistricts.Rd
pvsR/man/Votes.getBillsBySponsorYear.Rd
pvsR/man/Votes.getBillsByCategoryYearState.Rd
pvsR/man/Votes.getVetoes.Rd
pvsR/man/District.getByOfficeState.Rd
pvsR/man/Npat.getNpat.Rd
pvsR/man/Officials.getByOfficeTypeState.Rd
pvsR/man/Office.getTypes.Rd
pvsR/man/Office.getLevels.Rd
pvsR/man/Rating.getCandidateRating.Rd
pvsR/man/Office.getBranches.Rd
pvsR/man/getAllVotes.Rd
pvsR/man/Candidates.getByLevenshtein.Rd
pvsR/man/Officials.getByOfficeState.Rd
pvsR/man/Votes.getBillsByStateRecent.Rd
pvsR/man/Committee.getCommitteesByTypeState.Rd
pvsR/man/Local.getCounties.Rd
pvsR/man/Votes.getBillsBySponsorCategory.Rd
pvsR/man/getOffices.Rd
pvsR/man/Election.getElectionByYearState.Rd
pvsR/man/Candidates.getByOfficeState.Rd
pvsR/man/Committee.getTypes.Rd
pvsR/man/Leadership.getOfficials.Rd
pvsR/man/Candidates.getByElection.Rd
pvsR/man/Officials.getByZip.Rd
pvsR/man/District.getByZip.Rd
pvsR/man/Office.getOfficesByType.Rd
pvsR/man/Office.getOfficesByBranchLevel.Rd
pvsR/man/Local.getCities.Rd
pvsR/man/Committee.getCommitteeMembers.Rd
pvsR/man/getAllCounties.Rd
pvsR/man/Candidates.getByOfficeTypeState.Rd
pvsR/man/CandidateBio.getBio.Rd
pvsR/man/Votes.getByOfficial.Rd
pvsR/man/Measure.getMeasure.Rd
pvsR/man/Votes.getCategories.Rd
pvsR/man/Votes.getBillActionVotes.Rd
pvsR/man/State.getStateIDs.Rd
pvsR/man/Office.getOfficesByLevel.Rd
pvsR/man/Officials.getByLevenshtein.Rd
pvsR/man/CandidateBio.getAddlBio.Rd
pvsR/man/Election.getStageCandidates.Rd
pvsR/man/Candidates.getByLastname.Rd
pvsR/man/Rating.getSigRatings.Rd
pvsR/man/Votes.getBillsByYearState.Rd
pvsR/man/Votes.getBillAction.Rd
pvsR/man/Rating.getSigList.Rd
pvsR/man/Local.getOfficials.Rd
pvsR/man/Votes.getBill.Rd
pvsR/man/getAllLocalOfficials.Rd
pvsR/man/Officials.getByDistrict.Rd
pvsR/man/Votes.getBillsByOfficialYearOffice.Rd
pvsR/man/Leadership.getPositions.Rd
pvsR/man/Election.getElectionByZip.Rd
pvsR/man/Measure.getMeasuresByYearState.Rd
pvsR/man/CandidateBio.getDetailedBio.Rd
pvsR/man/getAllCities.Rd
pvsR/man/Officials.getStatewide.Rd
pvsR/man/Votes.getBillsByOfficialCategoryOffice.Rd
pvsR/man/Rating.getSig.Rd
pvsR/man/getAllBios.Rd
pvsR/man/Candidates.getByDistrict.Rd
pvsR/man/Committee.getCommittee.Rd
pvsR/man/Rating.getCategories.Rd
pvsR/man/Candidates.getByZip.Rd
pvsR/man/Officials.getByLastname.Rd
pvsR/man/Rating.getRating.Rd
pvsR/man/Votes.getBillActionVoteByOfficial.Rd