View source: R/pm_ecoregions.R
| pm_by_ecoregion | R Documentation |
Convenience wrapper to list species occurring in one or more Peruvian
ecoregions. This function uses pm_species() internally and
therefore supports the same taxonomic and endemism filters.
pm_by_ecoregion(
ecoregion,
order = NULL,
family = NULL,
genus = NULL,
endemic = NULL
)
ecoregion |
Character vector with one or more ecoregion codes
(e.g. |
order |
Optional character vector with one or more taxonomic orders
to keep. If |
family |
Optional character vector with one or more families to keep.
If |
genus |
Optional character vector with one or more genera to keep.
If |
endemic |
Optional logical. If |
A tibble with a subset of rows from peru_mammals
corresponding to species present in at least one of the requested
ecoregions. Returns an empty tibble if no species match the criteria.
pm_list_ecoregions() to see available ecoregion codes,
pm_species() for the underlying function.
# All species in Yungas
pm_by_ecoregion("YUN")
# Endemic species in Selva Baja (SB)
pm_by_ecoregion("SB", endemic = TRUE)
# Rodents in Costa and Vertiente Occidental
pm_by_ecoregion(c("COS", "VOC"), order = "Rodentia")
# Bats in multiple ecoregions
pm_by_ecoregion(c("YUN", "SB"), order = "Chiroptera")
pm_by_ecoregion(c("YUN", "SB"), order = "Chiroptera",
endemic = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.