| taxo_path | R Documentation |
Returns the full node-by-node path from one taxon up to their most recent common ancestor (MRCA) and back down to the other taxon. The result is a data frame with one row per node, making it easy to inspect, filter, or pipe into other functions.
taxo_path(taxon_a, taxon_b, verbose = FALSE)
taxon_a |
A character string giving the first taxon name. |
taxon_b |
A character string giving the second taxon name. |
verbose |
Logical. If |
A data frame of class "taxodist_path" with columns:
nodeCharacter. The clade or taxon name at this step.
depthInteger. The depth of this node in the full lineage of its side (or the shared lineage for the MRCA).
directionCharacter. One of "a" (ascending from taxon A to
MRCA), "mrca" (the shared ancestor), or "b" (descending from MRCA
to taxon B).
Returns NULL if either taxon cannot be found.
mrca(), shared_clades(), compare_lineages()
taxo_path("Tyrannosaurus", "Velociraptor")
taxo_path("Tyrannosaurus", "Homo")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.