Learn R Programming

treeDA (version 0.0.5)

getBranchLengths: Make branch length vector

Description

Gets the branch lengths of the tree, with order the same as the columns in makeDescendantMatrix.

Usage

getBranchLengths(tree)

Arguments

tree

A tree object of class phylo

Value

A vector of length ntips + nnodes, with ith element giving the length of the branch above node i.