Learn R Programming

treeDA (version 0.0.5)

makeDescendantMatrix: Make descendant matrix

Description

Make a matrix describing the ancestry structure of a tree. Element (i,j) indicates whether leaf i is a descendant of node j.

Usage

makeDescendantMatrix(tree)

Arguments

tree

A tree object of class phylo

Value

A matrix describing the ancestry structure of a tree.