Learn R Programming

rsunlight (version 0.7.0)

os_district: Get OpenStates districts boundary by boundary id

Description

Get OpenStates districts boundary by boundary id

Usage

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

Run this code
# NOT RUN {
os_district(id = 'ocd-division/country:us/state:tx/sldl:100')
# }

Run the code above in your browser using DataLab