getNdSlt: Get a node slot

Description Usage Arguments Details See Also Examples

View source: R/get-nd-methods.R

Description

Returns the value of named slot.

Usage

1
getNdSlt(tree, slt_nm, id)

Arguments

tree

TreeMan object

slt_nm

slot name

id

node id

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.

See Also

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

Examples

1
2
3
library(treeman)
tree <- randTree(10)
getNdSlt(tree, slt_nm='spn', id='t1')  # return span of t1

treeman documentation built on July 8, 2020, 7:28 p.m.