EH | R Documentation |
Function EH
computes the sum of branch lengths on a phylogenetic tree.
EH(phyl, select = NULL)
phyl |
an object inheriting the class |
select |
a vector containing the numbers of the leaves (species) which must be considered in the computation of Phylogenetic Diversity (PD) (or merely sum of branch lengths on the tree). This argument allows the calculation of PD for a subset of species (including the branch between the subtree and the most ancient node of the full tree). |
Function EH
returns a real value
Sandrine Pavoine sandrine.pavoine@mnhn.fr with contributions of Stephane Dray
Faith, D.P. (1992). Conservation evaluation and phylogenetic diversity. Biological Conservation, 61, 1–10.
Nee, S. and May, R.M. (1997) Extinction and the loss of evolutionary history. Science, 278, 692–694.
optimEH
, randEH
## Not run:
if(require(ape) && require(adephylo)){
data(carni70, package = "adephylo")
tre <- read.tree(text = carni70$tre)
adiv:::EH(tre)
adiv:::EH(tre, select=c("Mustela.nigripes", "Mustela.frenata", "Puma.concolor"))
adiv:::EH(tre, select=c(1,68,70))
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.