title: Random Forest Crossvalidation in R
body: <p>I am working on a random forest in R and I would like to add the 10- folds cross validation to my model. But I am quite stuck there.
  This is sample of my code.</p>
  
  <pre><code>install.packages('randomForest')
  library(randomForest)
  set.seed(123)
  fit &lt;- randomForest(as.factor(sickrabbit) ~ Feature1,..., FeatureN ,data=training1, importance=TRUE,sampsize = c(200,300),ntree=500)
  </code></pre>
  
  <p>I found online the function <code>rfcv</code> in caret but I am not sure to understand how it works. Can anyone help with this function or propose an easier way to implement cross validation. Can you do it using random forest package instead of caret?</p>