I am running into some labels issue when using rpart in R.
Here's my situation.
I'm working on a dataset with categorical variables, here's an extract of my data
head(Dataset)
Entity IL CP TD Budget
2 1 3 2 250
5 2 2 1 663
6 1 2 3 526
2 3 1 2 522
when I plot my decision tree adding the labels, using
plot(tree)
text(tree)
I get wrong labels : for Entity, I get "abcd"
Why do I get that and how can I fix that ?
Thank you for your help