In R, there are two ways to train a model.
Formula Method
Formula Method
rf.mod<- randomForest(churn ~ ., data = churnTrain, importance= TRUE)
Default Method
rf.mod<- randomForest(x = churnTrain[, -20], y = churnTrain[, 20])
Share Share Tweet