get_parent_id: Get ID of parent node

View source: R/get_parent_id.R

get_parent_idR Documentation

Get ID of parent node

Description

Get ID of parent node

Usage

get_parent_id(tree_info_df, node_id)

Arguments

tree_info_df

Data frame containing information about the structure of the decision tree, which is built like a "treeInfo()" data frame from the package "ranger"

node_id

Node ID of the node whose parent ID is to be determined

Value

Parent node ID (number)

Author(s)

Lea Louisa Kronziel, M.Sc.


imbs-hl/timbR documentation built on April 17, 2025, 2:08 p.m.