The documentation (If I'm reading it correctly) says that the random forest predict function produces NA predictions if it encounters NA predictors for certain observations.
NOTE: If the object inherits from randomForest.formula, then any data with NA are silently omitted from the prediction. The returned value will contain NA correspondingly in the aggregated and individual tree predictions (if requested), but not in the proximity or node matrices
However, if I try to use the predict function on a dataset with some NA's in predictors [NA's in 7 observations out of 2688] I encounter the following error condition, and prediction fails.
Error in predict.randomForest(model, new.ds) : missing values in newdata
There is a slightly messy work-around that I would like to avoid if possible.
Am I doing/reading something wrong? Does it have to do something with the "inherits from randomForest.formula"
clause?