asRules {rattle} | R Documentation |
Display a list of rules for an rpart decision tree.
asRules(model, compact=FALSE, ...)
model |
an rpart model. |
compact |
whether to list cateogricals compactly. |
... |
further arguments passed to or from other methods. |
Traverse a decision tree to generate the equivalent set of rules, one rule for each path from the root node to a leaf node.
Package home page: http://rattle.togaware.com
## Not run: asRules.rpart(my.rpart)