os_district: Get OpenStates districts boundary by boundary id

Description Usage Arguments Value Examples

View source: R/os_district.R

Description

Get OpenStates districts boundary by boundary id

Usage

1
os_district(id, as = "table", key = NULL, ...)

Arguments

id

a boundary id used in District Boundary Lookup (character)

as

(character) One of table (default), list, or response (crul response object)

key

your SunlightLabs API key; loads from .Rprofile

...

Curl options passed on to crul::HttpClient

Value

a data.frame of bills.

Examples

1
2
3
4
## Not run: 
os_district(id = 'ocd-division/country:us/state:tx/sldl:100')

## End(Not run)

rsunlight documentation built on May 1, 2019, 10:18 p.m.