Description Usage Arguments Details Value Examples
Search OpenStates districts
1 2 3 |
state |
state two-letter abbreviation (character). required |
chamber |
Whether this district belongs to the upper or lower chamber. (character) |
abbr |
State abbreviation. (character) |
boundary_id |
boundary_id used in District Boundary Lookup (character) |
id |
A unique ID for this district (separate from boundary_id). |
legislators |
List of legislators that serve in this district. (may be more than one if num_seats > 1) |
name |
Name of the district (e.g. '14', '33A', 'Fifth Suffolk') |
num_seats |
Number of legislators that are elected to this seat. Generally one, but will be 2 or more if the seat is a multi-member district. |
as |
(character) One of table (default), list, or response
( |
key |
your SunlightLabs API key; loads from .Rprofile |
... |
Curl options passed on to crul::HttpClient |
this route appears to not support pagination, sorting or selecting fields
a data.frame of bills.
1 2 3 4 5 6 7 8 | ## Not run:
os_districts(state = 'tx')
os_districts(state = 'tx', chamber = 'upper')
os_districts(state = 'dc')
os_districts(state = 'dc', per_page=3)
os_districts(state = 'dc', per_page=3, sort='created_at')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.