Taxon represents a taxonomic hierarchy (from family through species). This class represents a number of validity checks to ensure the taxon is correctly structured. A taxon must have at least a family specified, and neither genus nor species can be specified without the "shallower" layers of the hierarchy specified first. Group Taxons together with Taxa().

Taxon(family = NA_character_, genus = NA_character_, species = NA_character_)

Arguments

family

The taxonomic family

genus

The taxonomic genus

species

The taxonomic species

Value

An instance of class Taxon

Examples

Taxon(
  family = "Pinaceae",
  genus = "Pinus",
  species = "ponderosa"
)
#> An object of class "Taxon"
#> Slot "family":
#> [1] "Pinaceae"
#> 
#> Slot "genus":
#> [1] "Pinus"
#> 
#> Slot "species":
#> [1] "ponderosa"
#> 

Taxon(
  family = "Betulaceae"
)
#> An object of class "Taxon"
#> Slot "family":
#> [1] "Betulaceae"
#> 
#> Slot "genus":
#> [1] NA
#> 
#> Slot "species":
#> [1] NA
#>