Same as predict.rpart,
but with additional information if nn=TRUE and/or rules=TRUE.
Arguments
object, newdata, type, na.action
Identical to the same arguments for predict.rpart.
If both nn and rules are FALSE,
the returned value is identical to predict.rpart.
nn
If TRUE, return a data.frame
with the predictions as usual
but with an extra column showing the leaf node number for each prediction.
rules
If TRUE, return a data.frame
with the predictions as usual
but with an extra column showing the rpart rule (as a string) for each prediction.
It may be helpful to use options(width=1000)
before printing this data.frame.
...
Passed on to rpart.rules,
for example clip.facs=TRUE.