View source: R/perumammals_api.R
| found_in_peru | R Documentation |
Simplified boolean check for species presence in Peru mammals database. Useful for filtering and logical operations.
found_in_peru(splist, exact_only = FALSE)
splist |
Character vector of species names |
exact_only |
Logical. If TRUE, only exact matches return TRUE (default: FALSE) |
Logical vector (TRUE = found, FALSE = not found)
species <- c("Panthera onca", "Tremarctos orrnatus",
"Tremarctos orrnatos", "Felis catus")
# Check presence (includes fuzzy matches)
found_in_peru(species)
tibble::tibble(splist = species) |>
dplyr::mutate(endemic = found_in_peru(splist))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.