Calculate classification errors.
classErr(classQuery, classOriginal, labPerSample = NULL)A list containing:
Numeric vector: the overall error rate and the balanced error rate (the mean of the per-class error rates).
Named numeric vector of per-class error rates.