floor_actions: floor actions methods

Description Usage Arguments Value Examples

Description

floor actions methods

Usage

1
2
3
4
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

1
2
3
4
5
## Not run: 
cg_floor_actions_recent(115, "house")
cg_floor_actions_date("senate", 2017, 5, 2)

## End(Not run)

rsunlight documentation built on May 1, 2019, 10:18 p.m.