get_bill_masterlist: Get master list of bills in a session

Description Usage Arguments Details Value See Also Examples

View source: R/get_bill_masterlist.R

Description

This is the API wrapper function for the getMasterList operation. It returns a master list of bills in a given session, or in the current session of a given state.

Usage

1
2
get_bill_masterlist(state = NULL, session_id = NULL,
  api_key = legiscan_api_key())

Arguments

state

Two letter abbreviation of the state

session_id

Session identifier

api_key

Your LegiScan API key (see legiscan_api_key)

Details

Only one of the two parameters are accepted: specifying state paramter returns the bill master list of the current session from that state; specifying the session_id parameter returns the bill master list of that specific session.

Value

Data frame of bill information in the session requested, including 'bill_id' and other information.

See Also

legiscan_api_key, LegiScan API manual.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# One state
get_bill_masterlist(state = "PA")

# Multiple states, use iterators, e.g. lapply() or map()
state_list <- c("AR", "AZ")
bills_current <- lapply(state_list, get_bill_masterlist)

## End(Not run)

fanghuiz/legiscanrr documentation built on Jan. 13, 2020, 4:51 a.m.