Returns the value of named slot.
Details
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.
Examples
tree <- randTree(10)
getNdSlt(tree, slt_nm = "spn", id = "t1") # return span of t1
#> [1] 0.7973574