Learn R Programming

SeuratObject (version 5.0.2)

CheckMatrix: Check Matrix Validity

Description

Check Matrix Validity

Usage

CheckMatrix(object, checks, ...)

# S3 method for default CheckMatrix(object, checks, ...)

# S3 method for dMatrix CheckMatrix(object, checks = c("infinite", "logical", "integer", "na"), ...)

# S3 method for lMatrix CheckMatrix(object, checks = c("infinite", "logical", "integer", "na"), ...)

Value

Emits warnings for each test and invisibly returns NULL

Arguments

object

A matrix

checks

Type of checks to perform, choose one or more from:

  • infinite”: Emit a warning if any value is infinite

  • logical”: Emit a warning if any value is a logical

  • integer”: Emit a warning if any value is not an integer

  • na”: Emit a warning if any value is an NA or NaN

...

Arguments passed to other methods