Learn R Programming

openadds (version 0.2.0)

as_openadd: Coerce to openadd object

Description

Coerce to openadd object

Usage

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

Arguments

country
(characater) Country name
state
(characater) State (or province) name
city
(characater) City name
...
ignored

Value

an object of class openadd

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.

Examples

Run this code
## 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)

Run the code above in your browser using DataLab