roll_call: Get Voting Record for House or Senate By Number, Session &...

Description Usage Arguments Value Note Examples

View source: R/roll-call.r

Description

Get Voting Record for House or Senate By Number, Session & Roll Call Number

Usage

1
2
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

1
2
3
4
5
6
## 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)

voteogram documentation built on May 2, 2019, 11:42 a.m.