Hi I have an error. Please could anyone help me? Thank you Sara
tree(DrugID~Age+Gender, data=train)-> mod_tree1
Warning messages:
1: In tree(DrugID ~ Age + Gender, data = train) :
NAs introduced by coercion
2: In tree(DrugID ~ Age + Gender, data = train) :
NAs introduced by coercion
plot(mod_tree1)
Error in plot.tree(mod_tree1) : cannot plot singlenode tree