title: How to use random forests in R with missing values?
body: <pre><code>library(randomForest)
  rf.model &lt;- randomForest(WIN ~ ., data = learn)
  </code></pre>
  
  <p>I would like to fit a random forest model, but I get this error:</p>
  
  <pre><code>Error in na.fail.default(list(WIN = c(2L, 1L, 1L, 2L, 1L, 2L, 2L, 1L,  : 
  missing values in object
  </code></pre>
  
  <p>I have data frame learn with 16 numeric atributes and WIN is a factor with levels 0 1.</p>