Re: [R] Error in FUN(X[[i]], ...) : subscript out of bounds

2019-12-04 Thread William Dunlap via R-help
In your fit_bayes function, you have getTrainPerf(mod)[, "TrainRMSE"] What are the column name of the output of getTrainPerf(mod)? print(colnames(getTrainPerf(mod))) You can home in on the problem faster if you call traceback() immediately after the error. Bill Dunlap TIBCO Software

Re: [R] Error in FUN(X[[i]], ...) : subscript out of bounds

2019-12-04 Thread PIKAL Petr
Hi I am pretty sure that nobody will be able to answer your question due to lack of information. Missing parentheses here bounds <- list(mtry = c(-2, 5) Use ?debug if the error is from your function. If the code is coppied from some help page, use the data from help page and try to