randEH: Amount of Evolutionary History Preserved when Random Species are Saved
Description
When branch lengths in an ultrametric phylogenetic tree are expressed as divergence times, the total sum of branch lengths in that tree expresses the amount of evolutionary history. The function randEH calculates the amount of evolutionary history preserved when k random species out of n original species are saved.
Usage
randEH(phyl, nbofsp, nrep = 10)
Value
Function randEH returns a numeric vector with the amount of evolutionary history preserved by each random drawing of the k species to be saved.
Arguments
phyl
an object inheriting the class phylo (see package ape), phylo4 (see package phylobase) or hclust.
nbofsp
an integer indicating the number of species saved (k).
nrep
an integer indicating the number of random sampling.