Learn R Programming

rsunlight (version 0.7.0)

cg_bills_recent: Get recent bills

Description

Get recent bills

Usage

cg_bills_recent(congress, chamber, type, key = NULL, as = "table", ...)

Arguments

congress

The number of the Congress this update took place during.

chamber

The chamber this update took place in. 'house' or 'senate'

type

Type of bill. introduced, updated, active, passed, enacted or vetoed

key

your SunlightLabs API key; loads from environment variable from .Renviron or from an option from .Rprofile

as

(character) One of table (default), list, or response (httr response object). When table is requested, the default, a table is not always returned, but is returned almost always. You can then make a table yourself if you like.

...

Optional additional curl options (debugging tools mostly) passed on to HttpClient

Value

some nasty parsing, so just list of lists for now

Examples

Run this code
# NOT RUN {
cg_bills_recent(115, "house", "introduced")
# }

Run the code above in your browser using DataLab