Skip to contents

Return the split information for each node in an rpart model as a data frame.

Usage

get_rpart_tree_info(rpart_fit, digits = getOption("digits"))

Arguments

rpart_fit

An rpart object.

digits

Number of digits to round the split values to.

Value

A data.frame with information regarding the feature/threshold used for each split in the rpart model.