Sparse {INLAtools} | R Documentation |
To store in i,j,x sparse matrix format
Description
To store in i,j,x sparse matrix format
Usage
Sparse(A, unique = TRUE, na.rm = FALSE, zeros.rm = FALSE)
Arguments
A |
matrix or Matrix |
unique |
logical (default is TRUE) to ensure that the internal representation is unique and there are no duplicated entries. (Do not change this unless you know what you are doing.) |
na.rm |
logical (default is FALSE) indicating if it is to replace ‘NA’'s in the matrix with zeros. |
zeros.rm |
logical (default is FALSE)
indicating if it is to remove zeros in the
matrix. Applied after |
Note
This is based in INLA::inla.as.sparse(), but allow all combinations of 'na.rm' and 'zeros.rm'.
[Package INLAtools version 0.0.4 Index]