Learn R Programming

rtimes (version 0.3.0)

cg_memberbystatedistrict: Get a list of the most recent new members of the current Congress.

Description

Get a list of the most recent new members of the current Congress.

Usage

cg_memberbystatedistrict(chamber = NULL, state = NULL, district = NULL, key = NULL, ...)

Arguments

chamber
One of 'house' or 'senate.
state
Limits the list of members by state; two-letter state code (e.g., CA).
district
Limits the list of members by district (House only). If you specify a district, you must also specify a state. If the district number you specify is higher than the total number of districts for that state, a 404 response will be returned.
key
your New York Times API key; pass in, or loads from .Rprofile as nytimes_cg_key, or from .Renviron as NYTIMES_CG_KEY
...
Curl options (debugging tools mostly) passed to GET

Value

List of new members of he current Congress.

Examples

Run this code
## Not run: 
# cg_memberbystatedistrict(chamber='senate', state='NH')
# ## End(Not run)

Run the code above in your browser using DataLab