Learn R Programming

treeman (version 1.1.4)

getNdPD: Get phylogenetic diversity of node

Description

Return summed value of all descending spns

Usage

getNdPD(tree, id)

Arguments

tree

TreeMan object

id

node id

Details

Sums the lengths of all descending branches from a node.

See Also

getNdsPD, https://github.com/DomBennett/treeman/wiki/get-methods

Examples

Run this code
# NOT RUN {
library(treeman)
tree <- randTree(10)
getNdPD(tree, id='n1')  # return PD of n1 which in this case is for the whole tree
# }

Run the code above in your browser using DataLab