Learn R Programming

phytools (version 0.7-20)

as.multiPhylo: Conversion to object of class "multiPhylo"

Description

This function converts between object classes.

Usage

as.multiPhylo(x, ...)
# S3 method for multiSimmap
as.multiPhylo(x, ...)
# S3 method for phylo
as.multiPhylo(x, ...)

Arguments

x

object to be converted to "multiPhylo". Presently an object of class "multiSimmap", or an object of class "phylo". In the latter case an object of class "multiPhylo" with length 1 is generated.

...

optional arguments.

Value

An object of class "multiPhylo".

References

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