Generic function to access data from functions in Atlas database
db_call_function.RdReturn 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,publicoratlas_api.- schema
Optional.
characterSchema from the database where is located the data. Can be eitherapi,publicoratlas_api.- output_geometry
Optional.
logicaldefaultFALSE. IfTRUE, returns ansfobject using thegeometrycolumn from the function output.- output_flatten
Optional.
logicaldefaultFALSE. IfTRUE, returns adata.frameobject with nested objects flattened.- .token
Optional.
characterBearer token providing access to the web api.- ...
characterornumericscalar or vector. Arguments to be passed to the function.