Learn R Programming

rsunlight (version 0.7.0)

floor_actions: floor actions methods

Description

floor actions methods

Usage

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

cg_floor_actions_date(chamber, year, month, day, key = NULL, as = "table", ...)

Arguments

congress

(character) The number of the Congress this update took place during.

chamber

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

key

your ProPublica API key; pass in or loads from environment variable stored as PROPUBLICA_API_KEY in either your .Renviron, or similar file locatd in your home directory

as

(character) IGNORED FOR NOW

...

optional curl options passed on to crul::HttpClient. See curl::curl_options()

year

(integer) year of the form YYYY

month

(integer) month of the form MM

day

(integer) day of the form DD

Value

various things for now, since return objects vary quite a bit among the different votes routes

Examples

Run this code
# NOT RUN {
cg_floor_actions_recent(115, "house")
cg_floor_actions_date("senate", 2017, 5, 2)
# }

Run the code above in your browser using DataLab