getNdPD: Get phylogenetic diversity of node

Description Usage Arguments Details See Also Examples

View source: R/get-nd-methods.R

Description

Return summed value of all descending spns

Usage

1
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

1
2
3
library(treeman)
tree <- randTree(10)
getNdPD(tree, id='n1')  # return PD of n1 which in this case is for the whole tree

treeman documentation built on July 8, 2020, 7:28 p.m.