ultrTree: Make tree ultrametric

Description Usage Arguments Details See Also Examples

View source: R/manip-methods.R

Description

Returns a tree with all tips ending at time 0

Usage

1
ultrTree(tree)

Arguments

tree

TreeMan object

Details

Re-calculates the branch lengths in the tree so that all tips are brought to the same time point: all species are extant.

See Also

https://github.com/DomBennett/treeman/wiki/manip-methods

Examples

1
2
3
4
5
library(treeman)
tree <- randTree(10)
(getDcsd(tree))  # list all extinct tips
tree <- ultrTree(tree)
(getDcsd(tree))  # list all extinct tips

Example output

[1] "t1"  "t10" "t2"  "t3"  "t4"  "t5"  "t6"  "t7"  "t8" 
character(0)

treeman documentation built on July 8, 2020, 7:28 p.m.