R/PCMTree.R
PCMTreeMatrixNodesInSameRegime.Rd
Which nodes in a tree belong to the same regime?
PCMTreeMatrixNodesInSameRegime(tree, upperTriangle = TRUE, returnVector = TRUE)
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 |
a M x M 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.