search_parents: Pranger

View source: R/01_search_parents.R

search_parentsR Documentation

Pranger

Description

Search parent nodes of each terminal node from a tree

Usage

search_parents(ranger_tree)

Arguments

ranger_tree

[ranger.tree] A ranger tree

Value

[data.table] A data.table containing parent nodes of each terminal node

Author(s)

Cesaire J. K. Fouodo

Examples

child_nodes <- list(
                    c(1, 0, 3, 5, 0, 0, 7, 0, 0),
                    c(2, 0, 4, 6, 0, 0, 8, 0, 0)
                  )
 parent_nodes <- search_parents(ranger_tree = child_nodes)

imbs-hl/pranger documentation built on May 15, 2022, 5:27 p.m.