Learn R Programming

expoTree (version 1.0.1)

ape2time: 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).

See Also

expoTree, ape

Examples

Run this code
  data(bird.families)
  ape2time(bird.families)

Run the code above in your browser using DataLab