Description Usage Arguments Value Examples
View source: R/lineage_length.R
Compute the distance from the root for a leaf.
1 | lineage_length(tree, label)
|
tree |
a "phylo" object. |
label |
tip label. |
A double.
1 2 3 | tree <- ape::read.tree(text = "(A:0.1,B:0.2,(C:0.3,D:0.4):0.5);")
lineage_length(tree, "A")
lineage_length(tree, "D")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.