tax_db: Set and get taxon ID databases

View source: R/getter_setter_s3_generics.R

tax_db.taxa_classificationR Documentation

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 class 'taxa_classification'
tax_db(x)

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

tax_db(x)

tax_db(x) <- value

## S3 method for class 'taxa_taxon'
tax_db(x)

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

## S3 method for class 'taxa_taxon_id'
tax_db(x)

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

## S3 method for class 'taxa_taxonomy'
tax_db(x)

## S3 replacement method for class '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

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


taxa documentation built on April 12, 2022, 9:06 a.m.