build_nested_node: Build a nested case_when expression for a single node

View source: R/tree-nested.R

build_nested_nodeR Documentation

Build a nested case_when expression for a single node

Description

Build a nested case_when expression for a single node

Usage

build_nested_node(node_id, tree_info, missing = "default")

Arguments

node_id

The node ID to build (0-indexed)

tree_info

Tree info list with nodeID, leftChild, rightChild, splitvarName, terminal, prediction, and node_splits

missing

What a row missing this split's column should do: "default" takes the .default branch, "na" returns NA, and "left" takes the left branch.


tidypredict documentation built on Oct. 18, 2026, 5:06 p.m.