powered by
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)
# S3 method for default IsMatrixEmpty(x)
Whether or not x is empty
x
A matrix
EmptyMatrix()
IsMatrixEmpty(new("matrix")) IsMatrixEmpty(matrix()) IsMatrixEmpty(matrix(1:3))
Run the code above in your browser using DataLab