[R] predict.rpart help

Osei Poku opoku at ece.cmu.edu
Wed Mar 23 18:24:00 CET 2011


Hi Everyone,

Is there a way to get predict.rpart() to return the nodes reached by the new examples in addition to the predicted probabilities it already returns? In other words, I would like to know the leaf node in the tree object that each new example data drops down to.

Thanks in advance for your help.

Osei


More information about the R-help mailing list