Generic function to access data from functions in Atlas database
db_call_function.Rd
Return data objects stored obtained through endpoints corresponding to the name of the database function.
Usage
db_call_function(
name,
schema = "public",
output_geometry = FALSE,
output_flatten = TRUE,
.token = NULL,
...
)
Arguments
- name
character
. Name of the atlas function to be accessed. data. Can be eitherapi
,public
oratlas_api
.- schema
Optional.
character
Schema from the database where is located the data. Can be eitherapi
,public
oratlas_api
.- output_geometry
Optional.
logical
defaultFALSE
. IfTRUE
, returns ansf
object using thegeometry
column from the function output.- output_flatten
Optional.
logical
defaultFALSE
. IfTRUE
, returns adata.frame
object with nested objects flattened.- .token
Optional.
character
Bearer token providing access to the web api.- ...
character
ornumeric
scalar or vector. Arguments to be passed to the function.