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 Taxon
s together with Taxa()
.
Taxon(family = NA_character_, genus = NA_character_, species = NA_character_)
The taxonomic family
The taxonomic genus
The taxonomic species
An instance of class Taxon
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
#>