A class used to define a single taxon. Most other classes in the taxa package include one or more objects of this class.
taxon(name, rank = NULL, id = NULL, authority = NULL)
name | a TaxonName object |
---|---|
rank | a TaxonRank object |
id | a TaxonId object |
authority | (character) a character string, optional |
An R6Class
object of class Taxon
Note that there is a special use case of this function - you can
pass NULL
as the first parameter to get an empty taxon
object. It makes
sense to retain the original behavior where nothing passed in to the first
parameter leads to an error, and thus creating a NULL
taxon is done very
explicitly.
Other classes:
hierarchies()
,
hierarchy()
,
taxa()
,
taxmap()
,
taxon_database()
,
taxon_id()
,
taxon_name()
,
taxon_rank()
,
taxonomy()
#> <Taxon> #> name: Poa annua #> rank: species #> id: 93036 #> authority: nonex$name#> <TaxonName> Poa annua #> database: nonex$rank#> <TaxonRank> species #> database: nonex$id#> <TaxonId> 93036 #> database: none# a null taxon object taxon(NULL)#> <Taxon> #> name: none #> rank: none #> id: none #> authority: none## with all NULL objects from the other classes taxon( name = taxon_name(NULL), rank = taxon_rank(NULL), id = taxon_id(NULL) )#> <Taxon> #> name: none #> rank: none #> id: none #> authority: none