roll_call | R Documentation |
Get Voting Record for House or Senate By Number, Session & Roll Call Number
roll_call(critter = c("house", "senate"), number, session = c(1L, 2L), rcall)
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 |
a 'list', one component of which is a 'votes' 'data.frame'
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.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.