View source: R/asRules.rpart.R
asRules | 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: https://rattle.togaware.com
## Not run: asRules.rpart(my.rpart)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.