Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rep.phylo

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)

References

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

See Also

Examples

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

phytools

Phylogenetic Tools for Comparative Biology (and Other Things)

v0.7-70
GPL (>= 2)
Authors
Liam J. Revell
Initial release
2020-9-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.