Learn R Programming

occCite (version 0.6.0)

taxonRectification: Taxon Rectification

Description

An function that takes an input taxonomic name, checks against taxonomic database, returns vector for use in database queries, as well as warnings if the name is invalid.

Usage

taxonRectification(taxName = NULL, datasources = NULL, skipTaxize = FALSE)

Value

A string with the closest match according to taxize::gna_verifier(), and a list of taxonomic data sources that contain the matching name.

Arguments

taxName

A string that, ideally, is a taxonomic name

datasources

A vector of taxonomic data sources implemented in taxize::gna_verifier(). See the Global Names Verifier for more information.

skipTaxize

If skipTaxize = TRUE, occCite will skip taxonomic rectification using taxize. Setting this option to `TRUE` will result in a check for the taxize package before taxonomic rectification is attempted.

Examples

Run this code
# Inputting taxonomic name and specifying what taxonomic sources to search
taxonRectification(
  taxName = "Buteo buteo hartedi",
  datasources = "National Center for Biotechnology Information",
  skipTaxize = TRUE
)

Run the code above in your browser using DataLab