Learn R Programming

rsunlight (version 0.7.0)

os_committees: Search OpenStates committees

Description

Search OpenStates committees

Usage

os_committees(state = NULL, chamber = "upper", committee = NULL,
  subcommittee = NULL, as = "table", key = NULL, ...)

Arguments

state

state two-letter abbreviation (character)

chamber

one of 'upper' or 'lower' (character)

committee

a committee name (character)

subcommittee

a subcommittee name (character)

as

(character) One of table (default), list, or response (crul response object)

key

your SunlightLabs API key; loads from .Rprofile

...

Curl options passed on to crul::HttpClient

Value

a data.frame of bills.

Details

this route appears to not support pagination, sorting or selecting fields

Examples

Run this code
# NOT RUN {
os_committees(state = 'tx')
os_committees(state = 'tx', chamber = 'upper')
os_committees(state = 'dc')
# }

Run the code above in your browser using DataLab