powered by
Adds a boolean `terminal` column to the dataset indicating whether each node is terminal.
terminalFunction(data)
The modified data frame with an additional `terminal` column.
A data frame containing tree structure information with at least `treeNum`, `iteration`, and `depth` columns.