Converts representations of phylogenetic trees to an object of the "ape"
class multiPhylo
.
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)
Object to be converted
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
.
as.multiPhylo(BalancedTree(8))
#> 1 phylogenetic tree
as.multiPhylo(list(BalancedTree(8), PectinateTree(8)))
#> 2 phylogenetic trees
data("Lobo")
as.multiPhylo(Lobo.phy)
#> 115 phylogenetic trees