Hello! I have encountered an issue with making my decision tree. When I write the code according to the lecture slide, i encounter the following error: Error in eval(predvars, data, env) : object 'label' not found. I have this even though I have included the header in my dataframe and indicate the data to be training data set in the rpart() function. Could anyone give any input on why this happens? Thank you!
I don't know. You'll have to send me your code to figure it out.