coalescent.intervals(x)
"phylo"
) or, alternatively, a vector of interval lengths."coalescentIntervals"
with the following entries:branching.times
, collapsed.intervals
,
read.tree
.
data("hivtree.newick") # example tree in NH format
tree.hiv <- read.tree(text = hivtree.newick) # load tree
ci <- coalescent.intervals(tree.hiv) # from tree
ci
data("hivtree.table") # same tree, but in table format
ci <- coalescent.intervals(hivtree.table$size) # from vector of interval lengths
ci
Run the code above in your browser using DataLab