Converts a phylogenetic tree into an ape phylo object

phyloFromPTree(ptree)

Arguments

ptree

phylogenetic tree

Value

phylo object

Examples

phyloFromPTree(extractPTree(simulateOutbreak()))
#> 
#> Phylogenetic tree with 8 tips and 7 internal nodes.
#> 
#> Tip labels:
#>   1, 2, 3, 4, 5, 6, ...
#> 
#> Rooted; includes branch lengths.