gpnames: Names for groups, if different from levels(actual)
rowcol: For predicted categories to appear as rows, specify rowcol="predicted"
printit: Character vector. Print "overall", or "confusion" matrix, or both.
prior: Prior probabilities for groups, if different from the relative group frequencies
digits: Number of decimal digits to display in printed output
Details
Predicted group assignments should be estimated from cross-validation or from bootstrap out-of-bag data. Better still, work with assignments for test data that are completely separate from the data used to dervive the model.
Returns
A list with elements overall (overall accuracy), confusion (confusion matrix) and prior (prior used for calculation of overall accuracy)
References
Maindonald and Braun: 'Data Analysis and Graphics Using R', 3rd edition 2010, Section 12.2.2