HOW TO model 2 classes in r for random forest code example
Example: how to build random forest in r
library(randomForest)
rf.model <- randomForest(formula = y ~ ., mtry = 4,
nodesize = 3,
sampsize = 5000,
data = your_data)