Learn R Programming

metacoder (version 0.3.7)

taxa: A class for multiple taxon objects

Description

Stores one or more [taxon()] objects. This is just a thin wrapper for a list of [taxon()] objects.

Usage

taxa(..., .list = NULL)

Value

An `R6Class` object of class `Taxon`

Arguments

...

Any number of object of class [taxon()]

.list

An alternate to the `...` input. Any number of object of class [taxon()]. Cannot be used with `...`.

Details

This is the documentation for the class called `taxa`. If you are looking for the documentation for the package as a whole: [taxa-package].

See Also

Other classes: hierarchies(), hierarchy(), taxmap(), taxon(), taxon_database(), taxon_id(), taxon_name(), taxon_rank(), taxonomy()

Examples

Run this code
(a <- taxon(
  name = taxon_name("Poa annua"),
  rank = taxon_rank("species"),
  id = taxon_id(93036)
))
taxa(a, a, a)

# a null set
x <- taxon(NULL)
taxa(x, x, x)

# combo non-null and null
taxa(a, x, a)

Run the code above in your browser using DataLab