prod.preds <- predict(rf.cv.1, production.tokens.tfidf)
Error in eval(predvars, data, env) : object 'if.' not found
the column doesnt exist in training data thus the error .
how do i overcome this error. any new column name should not give the error and instead should ignore it and continue execution.
code reference taken from here