Hi! Nice package! I found a bug when data frame contains character column (instead of factor)
Example:
library(Lock5Data)
library(dplyr)
data("HollywoodMovies2011")
# Movie is the ID column.
imputationResults <- missForest(xmis = select(HollywoodMovies2011, -Movie))
It throws the error:
argument is not numeric or logical: returning NA missForest iteration 1 in progress...
NAs introduced by coercionError in randomForest.default(x = obsX, y = obsY, ntree = ntree, mtry = mtry, :
NA/NaN/Inf in foreign function call (arg 1)
By intution I checked the data types, and convert the only character variable into factor, and now it doesn't crash. This works ok:
Hi! Nice package! I found a bug when data frame contains character column (instead of factor)
Example:
It throws the error: argument is not numeric or logical: returning NA missForest iteration 1 in progress... NAs introduced by coercionError in randomForest.default(x = obsX, y = obsY, ntree = ntree, mtry = mtry, : NA/NaN/Inf in foreign function call (arg 1)
By intution I checked the data types, and convert the only character variable into factor, and now it doesn't crash. This works ok:
cheers :)