# classification statistics for 5 cases
classtable(prediction.v = c(0, 0, 0, 1, 1),
criterion.v = c(0, 0, 1, 0, 1))
# Same as above, but now is perfect
classtable(prediction.v = c(0, 0, 1, 0, 1),
criterion.v = c(0, 0, 1, 0, 1))
Run the code above in your browser using DataLab