Displaying 1 result from an estimated 1 matches for "surrogatestyl".
Did you mean:
surrogatestyle
2012 Apr 03
1
rpart error message
...trieve the
error.
When we execute the following command,
cnr_model<-rpart(as.factor(Species)~Sepal Length+Sepal Width+Petal Length,
method="class", parms=list(split="gini",prior=c()),
control=rpart.control(minsplit=2,
na.action=na.pass,cp=0.001,usesurrogate=1,maxsurrogate=2,surrogatestyle=0,maxdepth=20,xval=10))
we get an error message* "Error: unexpected symbol in
"a<-cnr_model<-rpart(as.factor(Species)~Sepal Length""*
The REXP returned in not null and the geterrMessage() call doesnt return an
error message.
But for other errors in R , say "summar...