While running a randomForest model on my training data to predict a categorical variable for my test dataset I am getting this error
Error in predict.randomForest(fit, test) :
Type of predictors in new data do not match that of the training data.
Which predictors in new data is this error talking about? Do my variables in test dataset contain values that the training data doesn’t contain?
If yes, then how to handle this problem?