Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

print.confusionMatrix

Print method for confusionMatrix


Description

a print method for confusionMatrix

Usage

## S3 method for class '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

Author(s)

Max Kuhn

See Also


caret

Classification and Regression Training

v6.0-86
GPL (>= 2)
Authors
Max Kuhn [aut, cre], Jed Wing [ctb], Steve Weston [ctb], Andre Williams [ctb], Chris Keefer [ctb], Allan Engelhardt [ctb], Tony Cooper [ctb], Zachary Mayer [ctb], Brenton Kenkel [ctb], R Core Team [ctb], Michael Benesty [ctb], Reynald Lescarbeau [ctb], Andrew Ziem [ctb], Luca Scrucca [ctb], Yuan Tang [ctb], Can Candan [ctb], Tyler Hunt [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.