[R] Error in adabag

greg holly mak.hholly at gmail.com
Mon Jan 1 21:02:30 CET 2018


Hi all;

Happy new year. I have got the following error

rror in if (nrow(object$splits) > 0) { : argument is of length zero

 when I am running the following codes.

train <- c(sample(1:27,18), sample(28:54, 18), sample(55:81, 8))
 a2011.adaboost <- boosting(median_kod ~ ., data = b[train, ], boos=TRUE,
mfinal = 10,  control = rpart.control(minsplit = 0))

Regards,

Greg

	[[alternative HTML version deleted]]



More information about the R-help mailing list