Error in eval(predvars, data, env) : object 'species' not found

library(caret) 
library(partykit) 
model_iris <- ctree(formula = species~ ., data =  train_iris)

Error in eval(predvars, data, env) : object 'species' not found

please help for this error ..... this error was find in may R studio ..... in the other has no error

You can try to print train_iris if this has species column. It seems the error is because it does not exist in your data.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.