Description Usage Arguments Details Value See Also Examples
View source: R/get_bill_masterlist.R
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.
1 2 | get_bill_masterlist(state = NULL, session_id = NULL,
api_key = legiscan_api_key())
|
state |
Two letter abbreviation of the state |
session_id |
Session identifier |
api_key |
Your LegiScan API key (see |
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.
Data frame of bill information in the session requested, including 'bill_id' and other information.
legiscan_api_key
,
LegiScan API manual.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.