I have problem to use the predict function. every first time when I open r the plsda model predict works. however, I cannot repeat the prediction and get following error message:
Error in predict.mvr(object, newdata = newdata) : 'newdata' does not have the correct number of columns
I have to quite R and restart to be able to use "predict" again. I also got same proble when I use the tune.plsda or perf functions.
best regards, KY