pkgdown/mathjax-config.html

Skip to contents

Joins IUCN Red List conservation status to a taxify() result by looking up accepted_name in the conservation status enrichment.

Usage

add_conservation_status(x, verbose = TRUE)

Arguments

x

A data.frame returned by taxify().

verbose

Logical. Show download progress if enrichment data needs to be fetched. Default TRUE.

Value

The same data.frame with an additional column:

conservation_status

IUCN category: "LC" (Least Concern), "NT" (Near Threatened), "VU" (Vulnerable), "EN" (Endangered), "CR" (Critically Endangered), "EW" (Extinct in the Wild), "EX" (Extinct), or NA if not assessed.

Details

Conservation status values are compiled from publicly available sources including GBIF and the IUCN Red List API. Coverage is global across all taxonomic groups (~166k species).

Examples

# Runs offline against the bundled example database.
old <- options(taxify.data_dir = taxify_example_data())

taxify("Panthera tigris", backend = "gbif") |>
  add_conservation_status()

options(old)