getTaxonID: Extract taxonID(s) corresponding to the taxonomic description

View source: R/dbGetTaxonID.R

getTaxonIDR Documentation

Extract taxonID(s) corresponding to the taxonomic description

Description

Extract all possible TaxonIDs corresponding to the provided taxonomical description, which can be at the family, the genus or the species levels.

Usage

getTaxonID(
  family = "",
  genus = "",
  species = "",
  taxaType = 1,
  dbname = "gbif4crest_02"
)

Arguments

family

The name of the family.

genus

The name of the genus.

species

The name of the species.

taxaType

A numerical index (between 1 and 6) to define the type of palaeoproxy used: 1 for plants, 2 for beetles, 3 for chironomids, 4 for foraminifers, 5 for diatoms and 6 for rodents. The example dataset uses taxaType=0 (pseudo-data). Default is 1.

dbname

The name of the data source database.

Value

A vector of unique taxonIDs.

Examples

## Not run: 
  getTaxonID("Zamiaceae")
  getTaxonID("Zamiaceae", "Ceratozamia")
  ## \code{taxaType = 2} searches for beetles and not plants, so the next line returns nothing.
  getTaxonID("Zamiaceae", "Ceratozamia", taxaType = 2)

## End(Not run)


crestr documentation built on Jan. 6, 2023, 5:23 p.m.