View source: R/perumammals_api.R
| is_endemic_peru | R Documentation |
Simplified wrapper specifically for checking endemism status of mammals in Peru. Only evaluates species that are confirmed to occur in Peru.
is_endemic_peru(splist, return_logical = FALSE, filter_exact = FALSE)
splist |
Character vector of species names |
return_logical |
Logical. If TRUE, returns logical vector (TRUE/FALSE/NA). If FALSE, returns descriptive character vector (default: FALSE) |
filter_exact |
Logical. If TRUE, only considers exact matches (default: FALSE) |
If return_logical = FALSE: Character vector with endemism status If return_logical = TRUE: Logical vector (TRUE = endemic, FALSE = not endemic, NA = not found or endemism unknown)
species <- c("Panthera onca",
"Atelocynus microtis",
"Felis catus",
"Myotis bakeri")
is_endemic_peru(species)
# Descriptive output
tibble::tibble(splist = species) |>
dplyr::mutate(endemic = is_endemic_peru(splist))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.