Skip to content

Decision trees with factors and numericals

2 messages · Joel Fürstenberg-Hägg, David Winsemius

#
On Nov 24, 2009, at 8:50 AM, Joel F?rstenberg-H?gg wrote:
I do not think that error is arising because you have a factor on the  
RHS of the equation. It would have been extremely surprising to find  
that rpart would be complaining about encountering a factor. I think  
it is because you failed to enclose anova with quotes. The message is  
telling you that R encountered a function (a closure)  where it was  
"hoping for"  a character variable.