Yin Luo
2010-Jan-30 03:56 UTC
[R] Is there an equivalent of type="where" in predict.rpart, similiar to tree?
In package tree, users can use predict(model,data,type="where") to find out which terminal node the observation belongs to. I can't seem to find a similar function in package rpart. Is there any way to find out the same information using rpart? Thanks! Yin Luo [[alternative HTML version deleted]]