node_numbers: Get node numbers

Description Usage Arguments Value

View source: R/data_generation.R

Description

Take a vector of node names and return their index according to a tree walked in pre-order.

Usage

1
node_numbers(x, tree)

Arguments

x

a vector of node names

tree

a tree to get the index from

Value

a vector with length x containing the node indices


cfhammill/hierarchyTrees documentation built on Feb. 8, 2020, 2:54 a.m.