powered by
Returns the values of named slot as a vector for atomic values, else list.
getNdsSlt(tree, slt_nm, ids, parallel = FALSE, progress = "none")
TreeMan object
TreeMan
slot name
vector of node ids
logical, make parallel?
name of the progress bar to use, see create_progress_bar
create_progress_bar
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
getNdSlt
# NOT RUN { library(treeman) tree <- randTree(10) getNdsSlt(tree, slt_nm='spn', ids=tree['tips']) # return spans of all tips # }
Run the code above in your browser using DataLab