as_openadd: Coerce to openadd object

Description Usage Arguments Details Value Examples

View source: R/as_openadd.R

Description

Coerce to openadd object

Usage

1
as_openadd(country = NULL, state = NULL, city = NULL, ...)

Arguments

country

(characater) Country name

state

(characater) State (or province) name

city

(characater) City name

...

ignored

Details

This is a helper function to let the user specify what they want with any combination of country, state, and city - the output of which can be passed to oa_get to get data.

If your search results in more than 1 result, we stop with message to refine your search.

Value

an object of class openadd

Examples

1
2
3
4
5
6
7
## Not run: 
as_openadd(country="us", state="nv", city="las_vegas")

# too coarse, will ask you to refine your search
# as_openadd(country="us", state="mi", city="detroit")

## End(Not run)

openadds documentation built on May 1, 2019, 8:19 p.m.