Learn R Programming

caret (version 6.0-90)

print.confusionMatrix: Print method for confusionMatrix

Description

a print method for confusionMatrix

Usage

# S3 method for confusionMatrix
print(
  x,
  mode = x$mode,
  digits = max(3, getOption("digits") - 3),
  printStats = TRUE,
  ...
)

Arguments

x

an object of class confusionMatrix

mode

a single character string either "sens_spec", "prec_recall", or "everything"

digits

number of significant digits when printed

printStats

a logical: if TRUE then table statistics are also printed

optional arguments to pass to print.table

Value

x is invisibly returned

See Also

confusionMatrix