powered by
Returns the value of named slot.
getNdSlt(tree, slt_nm, id)
TreeMan object
TreeMan
slot name
node id
Returned object depends on name, either character, vector or numeric. Default node slots are: id, spn, prid, ptid and txnym. If slot is empty, returns NA.
getNdsSlt, https://github.com/DomBennett/treeman/wiki/get-methods
getNdsSlt
# NOT RUN { library(treeman) tree <- randTree(10) getNdSlt(tree, slt_nm='spn', id='t1') # return span of t1 # }
Run the code above in your browser using DataLab