Description Usage Arguments Details Examples
nominations methods
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", ...)
|
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 |
type |
(character) received, updated, confirmed, or withdrawn |
state |
(character) state Two-letter state abbreviation |
cg_nomination
: Get a specific nomination
cg_nominations_category
: Get recent nominations by categroy
cg_nominations_state
: Get nominees by state
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.