nominations: nominations methods

Description Usage Arguments Details Examples

Description

nominations methods

Usage

1
2
3
4
5
cg_nomination(congress, id, key = NULL, as = "table", ...)

cg_nominations_category(congress, type, key = NULL, as = "table", ...)

cg_nominations_state(congress, state, key = NULL, as = "table", ...)

Arguments

congress

(integer/numeric) the Congress in which this nomination was presented

id

alphanumeric ID beginning with PN - for example, "PN675"

key

your SunlightLabs API key; loads from environment variable from .Renviron or from an option from .Rprofile

as

(character) One of table (default), list, or response (httr response object). When table is requested, the default, a table is not always returned, but is returned almost always. You can then make a table yourself if you like.

...

Optional additional curl options (debugging tools mostly) passed on to HttpClient

type

(character) received, updated, confirmed, or withdrawn

state

(character) state Two-letter state abbreviation

Details

Examples

1
2
3
4
5
6
## Not run: 
cg_nomination(115, "PN40")
cg_nominations_category(115, "confirmed")
cg_nominations_state(115, "VA")

## End(Not run)

rOpenGov/rsunlight documentation built on July 21, 2019, 3:18 a.m.