Need help to get around the below error while performing data imputation in R using "missforest" package.
> imputed<- missForest(dummy, maxiter = 10, ntree = 100, variablewise = TRUE,
+ decreasing = TRUE, verbose = TRUE,
+ mtry = floor(sqrt(ncol(dummy))), replace = TRUE)
Error in sample.int(length(x), size, replace, prob) :
invalid first argument
Had the same problem. Transforming xmis object with as.data.frame helped. In your case it would be something like: