Learn R Programming

rsunlight (version 0.7.0)

committees: committees methods

Description

committees methods

Usage

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

Run this code
# 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")
# }

Run the code above in your browser using DataLab