powered by
confusionMatrix(actual, predicted)
## Not run: # confusionMatrix(c("A","B","A","B","B","A"),c(1,2,2,1,2,1)) # ## End(Not run)
Run the code above in your browser using DataLab