Dear useRs,

I am using the function tune.rpart() implemented in the e1071 package under
R 2.7.1 on Windows XP.

Sometimes, i.e., for some datasets, I get the following error:

 

> tune.rpart(dataset, data = dataset, cp = c(.005,.01,.02))

 

> Error in table(pred, true.y) : all arguments must have the same length

 

I am not able to understand the reason of it!

 

Thanks in advance for any help!

 

Regards,

claudio


	[[alternative HTML version deleted]]

