asRules: List the rules corresponding to the rpart decision tree

Description Usage Arguments Details Author(s) References Examples

View source: R/asRules.rpart.R

Description

Display a list of rules for an rpart decision tree.

Usage

1
asRules(model, compact=FALSE, ...)

Arguments

model

an rpart model.

compact

whether to list cateogricals compactly.

...

further arguments passed to or from other methods.

Details

Traverse a decision tree to generate the equivalent set of rules, one rule for each path from the root node to a leaf node.

Author(s)

[email protected]

References

Package home page: https://rattle.togaware.com

Examples

1
## Not run: asRules.rpart(my.rpart)

Example output

R session is headless; GTK+ not initialized.
Rattle: A free graphical interface for data mining with R.
Version 4.1.0 Copyright (c) 2006-2015 Togaware Pty Ltd.
Type 'rattle()' to shake, rattle, and roll your data.

rattle documentation built on Aug. 17, 2018, 5:04 p.m.