Learn R Programming

TreeTools (version 1.12.0)

as.multiPhylo: Convert object to multiPhylo class

Description

Converts representations of phylogenetic trees to an object of the "ape" class multiPhylo.

Usage

as.multiPhylo(x)

# S3 method for phylo as.multiPhylo(x)

# S3 method for list as.multiPhylo(x)

# S3 method for phyDat as.multiPhylo(x)

# S3 method for Splits as.multiPhylo(x)

Value

as.multiPhylo returns an object of class multiPhylo

as.multiPhylo.phyDat() returns a list of trees, each corresponding to the partitions implied by each non-ambiguous character in x.

Arguments

x

Object to be converted

Examples

Run this code
as.multiPhylo(BalancedTree(8))
as.multiPhylo(list(BalancedTree(8), PectinateTree(8)))
data("Lobo")
as.multiPhylo(Lobo.phy)

Run the code above in your browser using DataLab