Description Usage Arguments Functions Examples
Returns data on legislators.
1 2 3 | get_legislators(state = NULL, chamber = NULL, district = NULL)
get_legislator(legislator_id)
|
state |
Returns bills matching the given state abbreviation. |
chamber |
Returns bills matching the given state abbreviation, valid values are
|
district |
Returns legislators from the given district. |
legislator_id |
A legislator id, as returned by |
get_legislators
This function returns a list of legislators.
get_legislator
This function returns details for a legislator, including all roles.
1 2 3 4 5 | ## Not run:
(legislators <- get_legislators())
get_legislator(legislators$legislator_id[1])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.