Which tips in a tree belong to the same regime?

PCMTreeMatrixTipsInSameRegime(tree, upperTriangle = TRUE,
  returnVector = TRUE)

Arguments

tree

a phylo object with an existing edge.regime

upperTriangle

logical indicating if all duplicated entries and diagonal entries sould be set to NA (by default TRUE).

returnVector

logical indicating if a vector instead of a matrix should be returned (corresponding to calling as.vector on the resulting matrix and removing NAs). Default: TRUE

Value

a N x N logical matrix with TRUE on the diagonal and for each couple of tips that belong to the same dagonal. if returnVector is TRUE (default) only a vector of the non-NA entries will be returned.