rep.phylo {phytools}R Documentation

Replicate a tree or set of trees

Description

S3 method rep for object of class "phylo" or "multiPhylo". repPhylo is just an alias for rep.phylo and rep.multiPhylo.

Usage

## S3 method for class 'phylo'
rep(x, ...)
## S3 method for class 'multiPhylo'
rep(x, ...)
repPhylo(tree, times)

Arguments

tree

object of class "phylo".

times

number of times to replicate tree.

x

for S3 method an object of class "phylo" or "multiPhylo".

...

other arguments for rep (specifically, times).

Value

An object of class "multiPhylo".

Author(s)

Liam Revell liam.revell@umb.edu

References

Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.

See Also

c.phylo, rep

Examples

tree<-pbtree(n=100)
trees<-rep(tree,100)

[Package phytools version 0.4-60 Index]