print.node: Print node

Description Usage Arguments Details

Description

Print the logical conditions or rules necessary to pass through a node. If optional dataset and target variable are passed as well, the performance for the node will be summarized in a table.

Usage

1
2
## S3 method for class 'node'
print(node, newdata = NULL, y = NULL)

Arguments

node
newdata

A dataset consisting of the same columns and order as the dataset used to train the underlying decision tree.

y

A response variable to be aggregated showing how the node performs

Details

if newdata and y are passed into the function as well, a table of summarized performance will be printed after the node text.


Zelazny7/timbr documentation built on May 10, 2019, 1:57 a.m.