confusionMatrix: Create a Confusion Matrix based on two value vectors

View source: R/HelperUtils.R

confusionMatrixR Documentation

Create a Confusion Matrix based on two value vectors

Description

This function creates a confusion matrix based on two value vectors.

Usage

confusionMatrix(i = NULL, j = NULL)

Arguments

i

A character/numeric value vector to see concordance with j.

j

A character/numeric value vector to see concordance with i.

Examples


# Get Test ArchR Project
proj <- getTestProject()

# Overlap of Clusters and CellType
confusionMatrix(proj$Clusters, proj$CellType)

# Overlap of Cell Type and RNA Predict
confusionMatrix(proj$CellType, proj$predictedGroup_Un)


GreenleafLab/ArchR documentation built on Feb. 21, 2025, 3:05 p.m.