taxon

0th

Percentile

Taxon class

A class used to define a taxon.

Usage
taxon(name, rank = NULL, id = NULL, authority = NULL)
Arguments
name

a TaxonName object taxon_name() or character string. if character passed in, we'll coerce to a TaxonName object internally, required

rank

a TaxonRank object taxon_rank() or character string. if character passed in, we'll coerce to a TaxonRank object internally, required

id

a TaxonId object taxon_id(), numeric/integer, or character string. if numeric/integer/character passed in, we'll coerce to a TaxonId object internally, required

authority

(character) a character string, optional

Value

An R6Class object of class Taxon

See Also

Other classes: hierarchies, hierarchy, taxa, taxmap, taxon_database, taxon_id, taxon_name, taxon_rank, taxonomy

Aliases
  • taxon
Examples
# NOT RUN {
(x <- taxon(
  name = taxon_name("Poa annua"),
  rank = taxon_rank("species"),
  id = taxon_id(93036)
))
x$name
x$rank
x$id
# }
Documentation reproduced from package taxa, version 0.1.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.