R: Convert tree from 'phylo' format (ape) to event time format.
ape2time
R Documentation
Convert tree from 'phylo' format (ape) to event time format.
Description
Extract branching and sampling times from a tree in the native ape format.
Usage
ape2time(tree, eps = 0.0)
Arguments
tree
Tree in 'phylo' format.
eps
Error tolerance for the present time (see Details).
Details
In some cases R doesn't handle mathematical operations quite well and it can
happen that tip ages are calculated as 10^-14 or similar instead of 0.0.
'eps' defines the tolerance for what is considered extant at the present
(tip age < eps).