committees: committees methods

Description Usage Arguments Value Examples

Description

committees methods

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
cg_committees(congress, chamber, key = NULL, as = "table", ...)

cg_committee(congress, chamber, id, sub_id = NULL, key = NULL,
  as = "table", ...)

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

cg_committee_comms(congress, key = NULL, as = "table", ...)

cg_committees_comms_category(congress, category, key = NULL, as = "table",
  ...)

cg_committees_comms_date(date, key = NULL, as = "table", ...)

cg_committees_comms_chamber(congress, chamber, 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()

id

(character) a commmitte id

sub_id

(character) a sub-committee id

category

(character) one of ec, pm, or pom

date

(character) a date, of the form YYYY-MM-DD

Value

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
cg_committees(115, "senate")
cg_committee(115, "senate", "SSAF")
cg_committee(115, "senate", "HSAS", sub_id = "HSAS28")
cg_committee_hearings(115)
cg_committee_hearings(115, "house", "HSRU")
cg_committee_comms(115)
cg_committees_comms_category(115, "pm")
cg_committees_comms_date("2018-03-21")
cg_committees_comms_chamber(115, "house")

## End(Not run)

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