Check that taxa are in the FinBIF database.

finbif_check_taxa(taxa, cache = getOption("finbif_use_cache"))

Arguments

taxa

Character (or list of named character) vector(s). If a list each vector can have the name of a taxonomic rank (genus, species, etc.,). The elements of the vectors should be the taxa to check.

cache

Logical. Use cached data.

Value

An object of class finbif_taxa. A list with the same form as taxa.

Examples

if (FALSE) {

# Check a scientific name
finbif_check_taxa("Cygnus cygnus")

# Check a common name
finbif_check_taxa("Whooper swan")

# Check a genus
finbif_check_taxa("Cygnus")

# Check a list of taxa
finbif_check_taxa(
  list(
    species = c("Cygnus cygnus", "Ursus arctos"),
    genus   = "Betula"
  )
)
}