Learn R Programming

mixlm (version 1.4.0)

confusion: Confusion matrix.

Description

Computes the confusion matrix of a classification result.

Usage

confusion(true, predicted)

Arguments

true

true classes.

predicted

predicted classes.

Details

This is a pure print function.

Examples

Run this code
true <- c('a','a','b','b','c','c')
predicted <- c('a','c','b','b','a','c')
confusion(true, predicted)

Run the code above in your browser using DataLab