Learn R Programming

rtemis (version 0.79)

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

Description

Convert an rpart object to a data.tree object, which can be plotted with mplot3.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