is.confusion.matrix: Check if the element has the structure of a confusion matrix

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Slim check for the element to assure it has 2 dimensions, is a table and whose elements are exclusively integers

Usage

1

Arguments

x

table object

Value

logical indicating wether the element matches the description

Examples

1
2
is.confusion.matrix(table(1:3, 3:1, 1:3)) # FALSE
is.confusion.matrix(table(1:3, 3:1)) # TRUE

jspaezp/sctree documentation built on April 30, 2020, 10:36 p.m.