Learn R Programming

treescape (version 1.0.0)

linearMrca: Linear MRCA function

Description

Function to make the MRCA matrix of a tree, where entry (i,j) gives the MRCA of tips i and j.

Usage

linearMrca(tree, k = 0)

Arguments

Examples

Run this code
## generate a random tree
x <- rtree(6)

## create matrix of MRCAs: entry (i,j) is the node number of the MRCA of tips i and j
linearMrca(x,6)

Run the code above in your browser using DataLab