getNdsSlt | R Documentation |
Returns the values of named slot as a vector for atomic values, else list.
getNdsSlt(tree, slt_nm, ids, parallel = FALSE, progress = "none")
tree |
|
slt_nm |
slot name |
ids |
vector of node ids |
parallel |
logical, make parallel? |
progress |
name of the progress bar to use, see |
Returned object depends on name, either character, vector or numeric. Parallelizable. Default node slots are: id, spn, prid, ptid and txnym.
getNdSlt
,
https://github.com/DomBennett/treeman/wiki/get-methods
tree <- randTree(10)
getNdsSlt(tree, slt_nm = "spn", ids = tree["tips"]) # return spans of all tips
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.