incidence.matrix: Incidence matrix of a tree.

View source: R/shifts_manipulations.R

incidence.matrixR Documentation

Incidence matrix of a tree.

Description

incidence.matrix computes the incidence matrix T of a tree : for a lineage i and a branch b, T[i,b]=1 if b is in the lineage i, and 0 otherwise.

Usage

incidence.matrix(phylo)

Arguments

phylo

a phylogenetic tree, class phylo.

Value

Matrix of incidence, size Nedge x ntaxa.

See Also

incidence.matrix.full


PhylogeneticEM documentation built on Aug. 31, 2022, 9:16 a.m.