Learn R Programming

voteogram (version 0.3.2)

roll_call: 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)

Value

a `list`, one component of which is a `votes` `data.frame`

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

Examples

Run this code
if (FALSE) {
# 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)
}

Run the code above in your browser using DataLab