View source: R/perumammals_api.R
| get_common_names_peru | R Documentation |
Returns taxonomic classification and common names for species validated against the Peru mammals database.
get_common_names_peru(splist, return_details = FALSE)
splist |
Character vector of species names |
return_details |
Logical. If TRUE, includes full taxonomic information (default: FALSE) |
If return_details = FALSE: Character vector with common names If return_details = TRUE: Tibble with taxonomic and common name information
species <- c("Panthera onca", "Tremarctos ornatus",
"Puma concolor", "Myotis bakeri")
# Get common names
# Vector
get_common_names_peru(species)
# tibble
tibble::tibble(splist = species) |>
dplyr::mutate(endemic = get_common_names_peru(splist))
# Get full taxonomic information
taxonomy <- get_common_names_peru(species, return_details = TRUE)
taxonomy
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.