tax_cite: Set and get taxon authority citations

Description Usage Arguments Examples

View source: R/getter_setter_s3_generics.R

Description

Set and get the taxon authority citations in objects that have them, such as taxon_authority objects.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
tax_cite(x)

tax_cite(x) <- value

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

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

## S3 replacement method for class 'taxa_taxon_authority'
tax_cite(x) <- value

## S3 method for class 'taxa_taxon_authority'
tax_cite(x)

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

## S3 replacement method for class 'taxa_taxonomy'
tax_cite(x) <- value

Arguments

x

An object with taxon authority dates.

value

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

Examples

1
2
3
4
5
x <- taxon_authority(c('Cham. & Schldl.', 'L.'),
                     date = c('1827', '1753'),
                     citation = c(NA, 'Species Plantarum'))
tax_cite(x)
tax_cite(x)[1] <- "Cham. et al 1984"

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