cg_memberslist: Get a list of members of a particular chamber in a particular...

Description Usage Arguments Value References See Also Examples

Description

Get a list of members of a particular chamber in a particular Congress

Usage

1
2
cg_memberslist(congress_no = NULL, chamber = NULL, state = NULL,
  district = NULL, key = NULL, ...)

Arguments

congress_no

The number of the Congress during which the members served.

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

(character) your Propublica API key; pass in, or loads from .Renviron as PROPUBLICA_API_KEY. See rtimes-package for info on rate limits.

...

Curl options (debugging tools mostly) passed to HttpClient

Value

List of members of a particular chamber in a particular Congress.

References

Congress API docs https://projects.propublica.org/api-docs/congress-api/

See Also

Other congress: cg_billscosponsor, cg_memberappear, cg_memberbioroles, cg_memberbystatedistrict, cg_membersleaving, cg_membersponsorcompare, cg_membervotecompare, cg_membervotepositions, cg_newmembers, cg_rollcallvote

Examples

1
2
3
4
5
6
## Not run: 
cg_memberslist(congress_no = 112, chamber = 'senate', state = "TX")
cg_memberslist(112, 'senate', 'NH')
cg_memberslist(110, 'senate', 'NH')

## End(Not run)

ropengov/rtimes documentation built on July 21, 2019, 5:27 a.m.