unique.multiPhylo {ape} | R Documentation |
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 class 'multiPhylo' unique(x, incomparables = FALSE, use.edge.length = FALSE, use.tip.label = TRUE, ...)
x |
an object of class |
incomparables |
unused (for compatibility with the generic). |
use.edge.length |
a logical specifying whether to consider the edge
lengths in the comparisons; the default is |
use.tip.label |
a logical specifying whether to consider the tip
labels in the comparisons; the default is |
... |
further arguments passed to or from other methods. |
an object of class "multiPhylo"
which is a list of objects of
class "phylo"
.
Emmanuel Paradis Emmanuel.Paradis@mpl.ird.fr
all.equal.phylo
, unique
for the generic R
function, read.tree
, read.nexus
TR <- rmtree(50, 4) length(unique(TR)) # not always 15... howmanytrees(4)