I\'ve trained a tree model with R caret. I\'m now trying to generate a confusion matrix and keep getting the following error:
Error in confusionMatrix
Try specifying na.pass for the na.action option:
na.pass
na.action
predictionsTree <- predict(treeFit, testdata,na.action = na.pass)