Learn R Programming

taxa (version 0.4.3)

tax_date.taxa_classification: Set and get taxon authority dates

Description

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

Usage

# S3 method for taxa_classification
tax_date(x)

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

tax_date(x)

tax_date(x) <- value

# S3 method for taxa_taxon tax_date(x)

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

# S3 method for taxa_taxon_authority tax_date(x) <- value

# S3 method for taxa_taxon_authority tax_date(x)

# S3 method for taxa_taxonomy tax_date(x)

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

Arguments

x

An object with taxon authority dates.

value

The taxon authority dates to set. Inputs will be coerced into a character vector.

Examples

Run this code
x <- taxon_authority(c('Cham. & Schldl.', 'L.'),
                     date = c('1827', '1753'))
tax_date(x)
tax_date(x)[1] <- "1984"
tax_date(x) <- c(NA, '1800')

Run the code above in your browser using DataLab