getNdsSlt: Get a node slot for multiple nodes

Description Usage Arguments Details See Also Examples

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

Description

Returns the values of named slot as a vector for atomic values, else list.

Usage

1
getNdsSlt(tree, slt_nm, ids, parallel = FALSE, progress = "none")

Arguments

tree

TreeMan object

slt_nm

slot name

ids

vector of node ids

parallel

logical, make parallel?

progress

name of the progress bar to use, see create_progress_bar

Details

Returned object depends on name, either character, vector or numeric. Parallelizable. Default node slots are: id, spn, prid, ptid and txnym.

See Also

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

Examples

1
2
3
library(treeman)
tree <- randTree(10)
getNdsSlt(tree, slt_nm='spn', ids=tree['tips'])  # return spans of all tips

treeman documentation built on June 27, 2017, 9:02 a.m.