I was running a randomforest on a binary categorical outcome variable(y). I used the tree package in R and fit the model using randomForest() funct
tree
randomForest()