tax_db: Set and get taxon ID databases

Description Usage Arguments Examples

View source: R/getter_setter_s3_generics.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
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

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

zachary-foster/taxa2 documentation built on Jan. 1, 2021, 1:48 p.m.