motmot.2.0 (version 1.1.2)

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 package).

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 DataCamp Workspace