rep.phylo {phytools} | R Documentation |
Replicate a tree or set of trees
Description
rep
method for object of class "phylo"
or "multiPhylo"
.
Usage
## S3 method for class 'phylo'
rep(x, ...)
## S3 method for class 'multiPhylo'
rep(x, ...)
repPhylo(tree, times)
Arguments
tree |
object of class |
times |
number of times to replicate tree. |
x |
for S3 method an object of class |
... |
other arguments for |
Details
repPhylo
is just an alias for rep.phylo
and rep.multiPhylo
.
Value
An object of class "multiPhylo"
.
Author(s)
Liam Revell liam.revell@umb.edu
References
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
See Also
Examples
tree<-pbtree(n=100)
trees<-rep(tree,100)
[Package phytools version 2.3-0 Index]