sotkanet.json_query: Retrieve Sotkanet Data (json)

View source: R/json.R

sotkanet.json_queryR Documentation

Retrieve Sotkanet Data (json)

Description

Retrieve data in json format from given url.

Usage

sotkanet.json_query(url, user.agent = NULL, simplifyVector = TRUE, ...)

Arguments

url

Sotkanet JSON url

user.agent

"User agent" defined by the user. Default is "rOpenGov/sotkanet"

simplifyVector

When ´TRUE´ returns a data.frame object and when ´False´ returns a list instead.

...

additional parameters to be passed to test_connection, mainly timeout (in seconds, default is 10)

Value

a data.frame (simplifyVector = TRUE) or a list (simplifyVector = FALSE)

Author(s)

Maintainer: Leo Lahti leo.lahti@iki.fi, Pyry Kantanen

References

See citation("sotkanet")


ropengov/sotkanet documentation built on July 15, 2024, 8:23 p.m.