R/dbGetTaxonomy.R
getTaxonomy.Rd
Extract all possible TaxonIDs corresponding to the provided taxonomical description, which can be at the family, the genus or the species levels.
getTaxonomy(
family = "",
genus = "",
species = "",
taxaType = 1,
depth.out = 8,
dbname = "gbif4crest_02",
crest = NA
)
The name of the family.
The name of the genus.
The name of the species.
A numerical index (between 1 and 5) 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 taxonomic resolution of the output table. 1 for Kingdom, 2 for phylum, 3 for class_name, 4 for order_name, 5 for family, 6 for genus, 7 for species and 8 to also include the taxonID.
The name of the data source database.
A crestObj to be used to refine the selection to a specific study
area. Set to NA
by default (global search).
A vector of unique taxonIDs.
if (FALSE) {
getTaxonomy("Zamiaceae ")
getTaxonomy(genus="Ceratozamia", depth.out=6)
## \code{taxaType = 2} searches for beetles and not plants, so the next line returns nothing.
getTaxonomy("Zamiaceae", "Ceratozamia", taxaType = 2)
}