There are certain cases where a predict function may be passed an object in data that is valid, but will not work given that it isn't a strict data.frame. In particular, resample objects from modelr package.
The solution is to coerce data with as.data.frame() in predict.
There are certain cases where a predict function may be passed an object in
data
that is valid, but will not work given that it isn't a strict data.frame. In particular, resample objects from modelr package.The solution is to coerce
data
withas.data.frame()
in predict.