View source: R/asRules.rpart.R
asRules.rpart | R Documentation |
Display a list of rules for an rpart decision tree.
## S3 method for class 'rpart' asRules(model, compact=FALSE, classes=NULL, ...)
model |
an rpart model. |
compact |
whether to list cateogricals compactly (default FALSE). |
classes |
which target classes should be listed (default all). |
... |
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.