get_official: get_official

Description Usage Arguments Value Examples

Description

Obtain official information from the Cicero API. Can seach by latitude and longitude coordinates and first and last name.

Usage

1
2
3
4
get_official(search_loc = NULL, lat = NULL, lon = NULL,
  first_name = NULL, last_name = NULL, valid_on = NULL,
  district_type = c("STATE_LOWER", "STATE_UPPER", "NATIONAL_UPPER",
  "NATIONAL_LOWER", "NATIONAL_EXEC"))

Arguments

search_loc

Street address

lat

Latitude coordiante

lon

Longitude coordinate

first_name

First name of official

last_name

Last name of official

valid_on

date for official

district_type

Officials from which district type?

Value

list

Examples

1
2
3
#' get_official(lat = 40, lon = -75.1)
#' get_official(search_loc = "3175 Bowers Ave. Santa Clara, CA", district_type = c("STATE_LOWER", "STATE_UPPER"))
#' get_official(last_name = "Obama")

daranzolin/rcicero documentation built on May 14, 2019, 6:07 p.m.