Learn R Programming

SeuratObject (version 5.0.2)

IsMatrixEmpty: Check if a matrix is empty

Description

Takes a matrix and asks if it's empty (either 0x0 or 1x1 with a value of NA)

Usage

IsMatrixEmpty(x)

# S3 method for default IsMatrixEmpty(x)

Value

Whether or not x is empty

Arguments

x

A matrix

See Also

EmptyMatrix()

Examples

Run this code
IsMatrixEmpty(new("matrix"))
IsMatrixEmpty(matrix())
IsMatrixEmpty(matrix(1:3))

Run the code above in your browser using DataLab