| lineage_depth | R Documentation |
Returns the number of nodes in the lineage of a taxon, from root to tip. This reflects how deeply nested the taxon is within the taxonomic hierarchy.
lineage_depth(taxon, verbose = FALSE)
taxon |
A character string giving the taxon name. |
verbose |
Logical. If |
An integer giving the lineage depth, or NULL if the taxon cannot
be found.
lineage_depth("Tyrannosaurus") # deep — many intermediate clades
lineage_depth("Biota") # shallow — near root
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.