db_call_function.Rd
Return data objects stored obtained through endpoints corresponding to the name of the database function.
db_call_function(
name,
schema = "public",
output_geometry = FALSE,
output_flatten = TRUE,
.token = NULL,
...
)
character
. Name of the atlas function to be accessed.
data. Can be either api
, public
or atlas_api
.
Optional. character
Schema from the database where is located
the data. Can be either api
, public
or atlas_api
.
Optional. logical
default FALSE
. If TRUE
,
returns an sf
object using the geometry
column from the function output.
Optional. logical
default FALSE
. If TRUE
,
returns a data.frame
object with nested objects flattened.
Optional. character
Bearer token providing access to the web
api.
character
or numeric
scalar or vector. Arguments to be passed
to the function.
tibble
with rows associated with Atlas data object
This function is designed to interface with a web API deployed with PostgREST