statements: statements methods

Description Usage Arguments Value Examples

Description

statements methods

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
cg_statements_search(query, key = NULL, as = "table", ...)

cg_statements_recent(key = NULL, as = "table", ...)

cg_statements_subjects(key = NULL, as = "table", ...)

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

cg_statements_subject(subject, key = NULL, as = "table", ...)

cg_statements_member(member_id, congress, key = NULL, as = "table", ...)

Arguments

query

(character) a search term

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()

date

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

subject

(character) slug version of subject

member_id

(character) The ID of the member to retrieve; it is assigned by the Biographical Directory of the United States Congress (http://bioguide.congress.gov/biosearch/biosearch.asp) or can be retrieved from a cg_members() request

congress

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

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
## Not run: 
cg_statements_recent()
cg_statements_subjects()
cg_statements_search("AHCA")
cg_statements_date("2017-01-03")
cg_statements_subject('immigration')
cg_statements_member('C001084', 115)

## End(Not run)

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