Description Usage Arguments Value Examples
View source: R/removal_tree_sampling_aux.R
Compute the height of a tree, that is the time elapsed between the most recent common ancestor of the samples and the last sample.
1 | tree_height(tree, t_max)
|
tree |
an object of class |
t_max |
the last sampling time |
a number
1 2 | tree_height(tree=list('branch_length'=1, 'subtrees'=list(list('branch_length'=1,
'subtrees'=NULL))), t_max=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.