powered by
This function scans a list of trees, and returns a list with the duplicate trees removed. By default the labelled topologies are compared.
# S3 method for multiPhylo unique(x, incomparables = FALSE, use.edge.length = FALSE, use.tip.label = TRUE, ...)
an object of class "multiPhylo" with an attribute
"multiPhylo"
"old.index" indicating which trees of the original list are similar (the tree of smaller index is taken as reference).
"old.index"
an object of class "multiPhylo".
unused (for compatibility with the generic).
a logical specifying whether to consider the edge lengths in the comparisons; the default is FALSE.
FALSE
a logical specifying whether to consider the tip labels in the comparisons; the default is TRUE.
TRUE
further arguments passed to or from other methods.
Emmanuel Paradis
all.equal.phylo, unique for the generic R function, read.tree, read.nexus
all.equal.phylo
unique
read.tree
read.nexus
TR <- rmtree(50, 4) length(unique(TR)) # not always 15... howmanytrees(4)
Run the code above in your browser using DataLab