Methods for generic functions anyNA(), is.na(), is.nan(), is.infinite(), and is.finite(), for objects inheriting from virtual class Matrix or sparseVector.
methods
## S4 method for signature 'denseMatrix'is.na(x)## S4 method for signature 'sparseMatrix'is.na(x)## S4 method for signature 'diagonalMatrix'is.na(x)## S4 method for signature 'indMatrix'is.na(x)## S4 method for signature 'sparseVector'is.na(x)## ...## and likewise for anyNA, is.nan, is.infinite, is.finite
Arguments
x: an object, here a sparse or dense matrix or vector.
Returns
For is.*(), an nMatrix or nsparseVector matching the dimensions of x and specifying the positions in x of (some subset of) NA, NaN, Inf, and -Inf. For anyNA(), TRUE if x contains NA