all-methods {Matrix} | R Documentation |
The basic R functions all
and any
now
have methods for Matrix
objects and should
behave as for matrix
ones.
signature(x = "Matrix")
: ...signature(x = "Matrix")
: ...signature(x = "ldenseMatrix")
: ...signature(x = "lsparseMatrix")
: ...
M <- Matrix(1:12 +0, 3,4) all(M >= 1) # TRUE any(M < 0 ) # FALSE