最佳答案
library(randomForest)
rf.model <- randomForest(WIN ~ ., data = learn)
I would like to fit a random forest model, but I get this error:
Error in na.fail.default(list(WIN = c(2L, 1L, 1L, 2L, 1L, 2L, 2L, 1L, :
missing values in object
I have data frame learn with 16 numeric atributes and WIN is a factor with levels 0 1.