View source: R/sotkanet_regions.R
| sotkanet_regions | R Documentation | 
Retrieves sotkanet regions data.
sotkanet_regions(
  type = "table",
  lang = "fi",
  user.agent = NULL,
  cache = TRUE,
  cache_dir = NULL
)
type | 
 type output format, either 'table' (default) or 'raw'. Default produces a truncated table with strictly defined columns that are useful in other functions. 'Raw' produces the full output which might be useful for exploratory purposes.  | 
lang | 
 Language of the output.  | 
user.agent | 
 "User agent" defined by the user. Default is NULL which will then use the package identifier "rOpenGov/sotkanet"  | 
cache | 
 a logical whether to do caching.  | 
cache_dir | 
 a path to the cache directory.  | 
Data is fetched from https://sotkanet.fi/rest/1.1/regions.
data.frame
Maintainer: Leo Lahti leo.lahti@iki.fi
See citation("sotkanet")
## Not run: 
sotkanet.regions <- sotkanet_regions(type = "table", lang = "fi")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.