File: rep.phylo.Rd

package info (click to toggle)
r-cran-phytools 2.4-4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,340 kB
  • sloc: makefile: 2
file content (41 lines) | stat: -rw-r--r-- 1,206 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
\name{rep.phylo}
\alias{rep.phylo}
\alias{rep.multiPhylo}
\alias{repPhylo}
\title{Replicate a tree or set of trees}
\usage{
\method{rep}{phylo}(x, ...)
\method{rep}{multiPhylo}(x, ...)
repPhylo(tree, times)
}
\arguments{
	\item{tree}{object of class \code{"phylo"}.}
	\item{times}{number of times to replicate tree.}
	\item{x}{for S3 method an object of class \code{"phylo"} or \code{"multiPhylo"}.}
	\item{...}{other arguments for \code{rep} (specifically, \code{times}).}
}
\description{
	\code{\link{rep}} method for object of class \code{"phylo"} or \code{"multiPhylo"}.
}
\details{
	\code{repPhylo} is just an alias for \code{rep.phylo} and \code{rep.multiPhylo}.
}
\value{
	An object of class \code{"multiPhylo"}.
}
\references{
	Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). \emph{PeerJ}, \bold{12}, e16505.
}
\author{Liam Revell \email{liam.revell@umb.edu}}
\examples{
## create a random tree
tree<-pbtree(n=100)

## create a "multiPhylo" object with 100 copies
trees<-rep(tree,100)
}
\seealso{
	\code{\link[ape]{c.phylo}}, \code{\link{rep}}
}
\keyword{phylogenetics}
\keyword{utilities}