IsMatrixEmpty | R Documentation |
Determine if a matrix is empty or not. A matrix is considered empty if it satisfies one of the following conditions:
The dimensions of the matrix are 0-by-0 (all(dim(x) == 0)
)
The dimensions of the matrix are 1-by-1 (all(dim(x) == 1)
) and
the sole vlaue is NA
These two situations correspond to matrices generated with either
new('matrix')
or matrix()
IsMatrixEmpty(x)
x |
A matrix |
TRUE
if the matrix is empty otherwise FALSE
SeuratDisk:::IsMatrixEmpty(new('matrix'))
SeuratDisk:::IsMatrixEmpty(matrix())
SeuratDisk:::IsMatrixEmpty(matrix(1:9, nrow = 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.