Converts an ape phylo object into a phylogenetic tree

ptreeFromPhylo(tr, dateLastSample)

Arguments

tr

phylo object

dateLastSample

date of the last sample

Value

phylogenetic tree

Examples

ptreeFromPhylo(ape::rtree(5),2020)
#> Phylogenetic tree
#> Number of sampled individuals=5