lineage_length: Lineage length

Description Usage Arguments Value Examples

View source: R/lineage_length.R

Description

Compute the distance from the root for a leaf.

Usage

1
lineage_length(tree, label)

Arguments

tree

a "phylo" object.

label

tip label.

Value

A double.

Examples

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")

abichat/correlationtree documentation built on March 11, 2020, 3:55 p.m.