GET_macrostrat {rmacrostrat} | R Documentation |
This function fetches data from Macrostrat via the Application Programming Interface (API). This is the core function for handling user requests.
GET_macrostrat(endpoint, query = list(), format = "json", output = "df")
endpoint |
|
query |
|
format |
|
output |
|
A data.frame
(if format
is "csv" or "json" and output
is "df"), a list
(if format
is "json" and output
is "list"), or
sf
object (if format
is "geojson").