as.data.tree.rpart: Convert 'rpart' rules to 'data.tree' object

View source: R/as.data.tree.rpart.R

as.data.tree.rpartR Documentation

Convert rpart rules to data.tree object

Description

Convert an rpart object to a data.tree object, which can be plotted with dplot3_cart

Usage

as.data.tree.rpart(object, verbose = FALSE)

Arguments

object

rpart object

verbose

Logical: If TRUE, print messages to console

Value

data.tree object

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on May 4, 2024, 7:40 p.m.