Learn R Programming

rsunlight (version 0.7.0)

os_statemetasearch: Search OpenStates metadata

Description

Search OpenStates metadata

Usage

os_statemetasearch(state = NULL, key = NULL, ...)

Arguments

state

One or more two-letter state abbreviations (character)

key

your SunlightLabs API key; loads from environment variable from .Renviron or from an option from .Rprofile

...

Optional additional curl options (debugging tools mostly) passed on to crul::HttpClient

Value

A list with metadata for each state.

Examples

Run this code
# NOT RUN {
os_statemetasearch()
os_statemetasearch('ca')
os_statemetasearch('tx')
os_statemetasearch('tx', verbose = TRUE)
# }

Run the code above in your browser using DataLab