https://github.com/cran/ape
Raw File
Tip revision: 1330e272d62c723b8073c95b066950b294f59697 authored by Emmanuel Paradis on 20 October 2012, 00:00:00 UTC
version 3.0-6
Tip revision: 1330e27
unique.multiPhylo.Rd
\name{unique.multiPhylo}
\alias{unique.multiPhylo}
\title{Revomes Duplicate Trees}
\description{
  This function scans a list of trees, and returns a list with the
  duplicate trees removed. By default the labelled topologies are
  compared.
}
\usage{
\method{unique}{multiPhylo}(x, incomparables = FALSE,
        use.edge.length = FALSE,
        use.tip.label = TRUE, ...)
}
\arguments{
  \item{x}{an object of class \code{"multiPhylo"}.}
  \item{incomparables}{unused (for compatibility with the generic).}
  \item{use.edge.length}{a logical specifying whether to consider the edge
    lengths in the comparisons; the default is \code{FALSE}.}
  \item{use.tip.label}{a logical specifying whether to consider the tip
    labels in the comparisons; the default is \code{TRUE}.}
  \item{\dots}{further arguments passed to or from other methods.}
}
\value{
  an object of class \code{"multiPhylo"} which is a list of objects of
  class \code{"phylo"}.
}
\author{Emmanuel Paradis}
\seealso{
  \code{all.equal.phylo}, \code{\link[base]{unique}} for the generic R
  function, \code{read.tree}, \code{read.nexus}
}
\examples{
TR <- rmtree(50, 4)
length(unique(TR)) # not always 15...
howmanytrees(4)
}
\keyword{manip}
back to top