Learn R Programming

shinyr (version 0.3.0)

confmatrix: Conf Matrix

Description

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

Usage

confmatrix(actuals, preds)

Arguments

actuals

a numeric vector

preds

a numeric vector

Value

A table same as caret::ConfusionMatrix

Details

confmatrix

Examples

Run this code
# NOT RUN {
confmatrix(c(1,1,1,0), c(1,1,0,0))
# }

Run the code above in your browser using DataLab