Re: [R] Finding a decision tree's leaf node from a new value

2005-09-12 Thread Stephen D. Weigand
It sounds to me like you're looking for the function predict.rpart(). Hope this helps, Stephen On Sep 9, 2005, at 8:45 AM, João Mendes Moreira wrote: Dear mailinglist members, I have the following problem: I run a decision tree using the rpart function and, afterwords, I try to find to

[R] Finding a decision tree's leaf node from a new value

2005-09-09 Thread João Mendes Moreira
Dear mailinglist members, I have the following problem: I run a decision tree using the rpart function and, afterwords, I try to find to which leaf node a new register (not used to build the decision tree) belongs to. I will try to explain better: rpart.tree - rpart(target.value ~., data)