Learn R Programming

epm (version 1.1.4)

faithPD: Calculate Faith's Phylogenetic Diversity

Description

Calculates Faith's PD for a specific set of tips

Usage

faithPD(phy, tips)

Value

numeric value of summed phylogenetic diversity

Arguments

phy

phylogeny of class phylo

tips

tip names to be included

Author

Pascal Title

Details

Returns the sum of total branch lengths that unite a set of species. The root is always included in these calculations. If tip is just one species, then the root-to-tip distance is returned.

References

Faith D.P. (1992) Conservation evaluation and phylogenetic diversity. Biological Conservation, 61, 1-10.

Examples

Run this code
tamiasTree
faithPD(tamiasTree, c('Tamias_minimus', 'Tamias_speciosus'))

Run the code above in your browser using DataLab