rep.phylo: Replicate a tree or set of trees

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/utilities.R

Description

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

Usage

1
2
3
4
5
## 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 [email protected]

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

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

liamrevell/phytools documentation built on Sept. 30, 2018, 1:41 a.m.