motmot (version 2.1.3)

nodeTimes: Get times for nodes and tips

Description

Produces branching and tip times for ultrametric and non-ultrametric trees

Usage

nodeTimes(phy)

Arguments

phy

An object of class phylo (see ape).

Value

Returns a matrix corresponging the phy "edge" matrix showning internal and external node times

Examples

Run this code
# NOT RUN {
## Read in phylogeny from Thomas et al. (2009)
data(anolis.tree)
anolis.node.times <- nodeTimes(phy=anolis.tree)
# }

Run the code above in your browser using DataLab