parent_index: Find the parent indices for each node

Description Usage Arguments Value

View source: R/data_generation.R

Description

Walks the tree in pre-order extracting the index of the parent for each structure.

Usage

1

Arguments

tree

The tree of interest

Value

An integer vector with parent indices


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