Learn R Programming

shinyr (version 0.4.2)

confmatrix: Conf Matrix

Description

Calculates a cross-tabulation of observed and predicted classes with associated statistics.

Usage

confmatrix(actuals, preds)

Value

A table same as caret::ConfusionMatrix

Arguments

actuals

a numeric vector

preds

a numeric vector

Author

Jayachandra N

Details

confmatrix

Examples

Run this code
confmatrix(c(1,1,1,0), c(1,1,0,0))

Run the code above in your browser using DataLab