Description Usage Arguments Value Author(s) References Examples
This function is a wrapper for the Votes.getBillAction() method of the PVS API Votes class which grabs detailed action information on a certain stage of the bill. The function sends a request with this method to the PVS API for all action IDs given as a function input, extracts the XML values from the returned XML file(s) and returns them arranged in one data frame.
1 | Votes.getBillAction(actionId)
|
actionId |
a character string or list of character strings with the action ID(s) (see references for details) |
A data frame with a row for each action and columns with
the following variables describing the action:
action.billId,
action.billNumber,
action.actionId,
action.category,
action.categoryId,
action.type,
action.stateId,
action.level,
action.stage,
action.outcome,
action.rollNumber,
action.yea,
action.nay,
action.voiceVote,
action.title,
action.officialTitle,
action.highlight,
action.synopsis,
action.officialSynopsis,
action.note.
Ulrich Matter <ulrich.matter-at-unibas.ch>
http://api.votesmart.org/docs/Votes.html
Use
Votes.getBill() or Votes.getByOfficial() to get a list of
action IDs.
1 2 3 4 5 | # First, make sure your personal PVS API key is saved as character string in the pvs.key variable:
## Not run: pvs.key <- "yourkey"
# get information about certain actions
## Not run: actioninfo <- Votes.getBillAction(actionId=list(2575,18436,10194))
## Not run: actioninfo
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.