Learn R Programming

treespace (version 1.1.4.3)

tipsMRCAdepths: Tip-tip MRCA depths

Description

This function creates a matrix where columns 1 and 2 correspond to tip labels and column 3 gives the depth of the MRCA of that pair of tips. It is strongly based on treeVec and is used by relatedTreeDist and treeConcordance where tip labels belong to "categories".

Usage

tipsMRCAdepths(tree)

Arguments

tree

An object of class phylo

Examples

Run this code
tree <- rtree(10)
plot(tree)
tipsMRCAdepths(tree)

Run the code above in your browser using DataLab