get_obis | R Documentation |
robis::occurrence()
Requires an aoi. i.e. aoi is not optional for this implementation of get_obis
get_obis(
aoi = NULL,
save_dir = NULL,
get_new = FALSE,
name = "obis",
data_map = NULL,
filter_inconsistent = TRUE,
removes = list(basisOfRecord = c("LIVING_SPECIMEN", "FOSSIL_SPECIMEN",
"MATERIAL_CITATION")),
...
)
aoi |
Optional simple feature (sf). Used to limit the occurrences
returned via |
save_dir |
Character. Path to directory into which to save outputs. If
|
get_new |
Logical. If FALSE, will attempt to load from existing
|
name |
Character. |
data_map |
Dataframe or NULL. Mapping of fields to retrieve. See example
|
filter_inconsistent |
Logical. If |
removes |
Named list. Names need to match column names in the result of
a call to |
... |
Passed to |
Dataframe of occurrences and file saved to save_dir
.
aoi <- sf::st_read(file.path(system.file(package = "envImport"), "aoi.shp"))
obis_data <- get_obis(aoi
, save_dir = tempdir()
, data_map = envImport::data_map
, get_new = TRUE
)
obis_data |>
dplyr::count()
# Removing certain methods
obis_data <- get_obis(aoi
, save_dir = tempdir()
, data_map = envImport::data_map
, removes = list(basisOfRecord = c("PreservedSpecimen"))
, get_new = TRUE
)
obis_data |>
dplyr::count()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.