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 value of named slot.

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 23, 2017, 4:43 a.m.

Search within the treeman package
Search all R packages, documentation and source code