tax2traits | R Documentation |
Taxonomic classification can be included in taxlist
objects within the information provided at slot taxonRelations
.
Nevertheless, for statistical analyses it may be more convenient to insert
such information in the slot taxonTraits
.
tax2traits(object, ...)
## S3 method for class 'taxlist'
tax2traits(object, get_names = FALSE, ...)
object |
An object of class taxlist. |
... |
Further arguments to be passed among methods. |
get_names |
Logical value indicating whether taxon names should be retrieved instead of taxon IDs. |
This function can only be applied to objects containing parent-child relationships and information on taxonomic levels.
An object of class taxlist with taxonomy added as traits.
Miguel Alvarez kamapu78@gmail.com.
## Family Acanthaceae with children
Acanthaceae <- subset(x = Easplist, subset = TaxonName == "Acanthaceae",
slot = "names", keep_children = TRUE)
summary(Acanthaceae)
## Insert taxonomy to taxon traits
Acanthaceae <- tax2traits(Acanthaceae, get_names = TRUE)
head(taxon_traits(Acanthaceae))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.