roll_call {voteogram} | R Documentation |
Get Voting Record for House or Senate By Number, Session & Roll Call Number
Description
Get Voting Record for House or Senate By Number, Session & Roll Call Number
Usage
roll_call(critter = c("house", "senate"), number, session = c(1L, 2L), rcall)
Arguments
critter |
one of 'house' or 'senate' |
number |
valid congress number. ProPublica seems to have data going back to the 101st Congress, so valid values are '101'-present Congress number ('115' as of the creation date of the package). |
session |
a valid session numbner (i.e. '1' or '2' and valid for current year) |
rcall |
roll call vote number |
Value
a 'list', one component of which is a 'votes' 'data.frame'
Note
Try to cache this data if at all possible. ProPublica is a non-profit organization and this data comes from their Amazon S3 buckets. Every access in a given month ticks down the "free" counter.
Examples
## Not run:
# these make API calls so they aren't run in the examples
rep <- roll_call("house", 115, 1, 256)
sen <- roll_call("senate", 115, 1, 110)
## End(Not run)
[Package voteogram version 0.3.2 Index]