Get a node slot for multiple nodes

Share:

Description

Returns the value of named slot.

Usage

1
getNdsSlt(tree, slt_nm, ids, ...)

Arguments

tree

TreeMan object

slt_nm

slot name

ids

vector of node ids

...

plyr arguments

Details

Returned object depends on name, either character, vector or numeric. Parallelizable.

See Also

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

Examples

1
2
3
library(treeman)
tree <- randTree(10)
getNdsSlt(tree, slt_nm='spn', ids=tree['tips'])  # return spans of all tips

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.