Please help! Error with RandomForest using the diabetics dataset.
random_forest = randomForest(Class.variable~.,data = train,ntree = 10,importance = T)
Error in y - ymean : non-numeric argument to binary operator
In addition: Warning messages:
1: In randomForest.default(m, y, ...) :
The response has five or fewer unique values. Are you sure you want to do regression?
2: In mean.default(y) : argument is not numeric or logical: returning NA