Learn R Programming

taxa (version 0.4.3)

tax_db.taxa_classification: Set and get taxon ID databases

Description

Set and get the taxon ID databases in objects that have them, such as taxon_id objects.

Usage

# S3 method for taxa_classification
tax_db(x)

# S3 method for taxa_classification tax_db(x) <- value

tax_db(x)

tax_db(x) <- value

# S3 method for taxa_taxon tax_db(x)

# S3 method for taxa_taxon tax_db(x) <- value

# S3 method for taxa_taxon_id tax_db(x)

# S3 method for taxa_taxon_id tax_db(x) <- value

# S3 method for taxa_taxonomy tax_db(x)

# S3 method for taxa_taxonomy tax_db(x) <- value

Arguments

x

An object with taxon authority dates.

value

The taxon citations to set. Inputs will be coerced into a taxon_db vector.

Examples

Run this code
x <- taxon_id(c('9606', '1386', '4890', '4345'), db = 'ncbi')
tax_db(x)
tax_db(x) <- 'nbn'
tax_db(x)[2] <- 'itis'

Run the code above in your browser using DataLab