Good Afternoon,
I am getting the same error as the previous person who posted (i.e. Error in eval(predvars, data, env) : object 'label' not found
Calls: model.svmdt ... eval -> <Anonymous> -> model.frame.default -> eval -> eval
Execution halted).
I tried to convert the label column to a factor as noted but then I seem to get his error:
Error: At least one of the class levels is not a valid R variable name; This will cause errors when class probabilities are generated because the variables names will be converted to X1, X2, X3 . Please use factor levels that can be used as valid R variable names (see ?make.names for help).
I thought of just putting an X in front of the factor names but then I realized that you do not have it that way in the example.
Any suggestions on what might be going wrong?
Thank you
Sierra