tree_height: Tree Height

Description Usage Arguments Value Examples

View source: R/removal_tree_sampling_aux.R

Description

Compute the height of a tree, that is the time elapsed between the most recent common ancestor of the samples and the last sample.

Usage

1
tree_height(tree, t_max)

Arguments

tree

an object of class tree

t_max

the last sampling time

Value

a number

Examples

1
2
tree_height(tree=list('branch_length'=1, 'subtrees'=list(list('branch_length'=1,
'subtrees'=NULL))), t_max=2)

JasmineGamblin/bdTreeSim documentation built on Nov. 11, 2019, 6:28 a.m.