R/generics.R
R/utils.R
IsMatrixEmpty.Rd
Takes a matrix and asks if it's empty (either 0x0 or 1x1 with a value of NA)
IsMatrixEmpty(x) # S3 method for default IsMatrixEmpty(x)
A matrix
Whether or not x is empty
x
EmptyMatrix()
IsMatrixEmpty(new("matrix")) #> [1] TRUE IsMatrixEmpty(matrix()) #> [1] TRUE IsMatrixEmpty(matrix(1:3)) #> [1] FALSE