I\'d like to build a confusion matrix and then summarize it to get evaluation metrics for my tree model.
I ran the confusionMatrix function and I got this error: