Learn R Programming

rpart.utils (version 0.5)

rpart.lists: Creates lists of variable values (factor levels) associated with each rule in an rpart object.

Description

Creates lists of variable values (factor levels) associated with each rule in an rpart object.

Usage

rpart.lists(object)

Arguments

object
an rpart object

Value

a list of lists

Examples

Run this code
library(rpart)
fit<-rpart(Reliability~.,data=car.test.frame)
rpart.lists(fit)

Run the code above in your browser using DataLab