| get_lineage_by_id | R Documentation |
Given a Taxonomicon numeric ID, retrieves and parses the complete hierarchical lineage from root (Natura) to the taxon itself. The lineage is returned as a character vector ordered from root to tip.
get_lineage_by_id(taxon_id, clean = TRUE, verbose = FALSE)
taxon_id |
A numeric or character string giving the Taxonomicon ID.
Obtain this with |
clean |
Logical. If |
verbose |
Logical. If |
Lineage data is sourced from The Taxonomicon, which is based on Systema Naturae 2000 (Brands, S.J., 1989 onwards). The depth of lineages in The Taxonomicon substantially exceeds that of other programmatic sources such as the Open Tree of Life, particularly for well-studied clades such as Dinosauria, where intermediate clades at the level of superfamilies, tribes, and named subclades are fully resolved.
A character vector of clade names from root to tip, or NULL if
retrieval fails.
get_lineage(), taxo_distance()
id <- get_taxonomicon_id("Tyrannosaurus")
lin <- get_lineage_by_id(id)
print(lin)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.