Sparse | R Documentation |
To store in i,j,x sparse matrix format
Sparse(A, unique = TRUE, na.rm = FALSE, zeros.rm = FALSE)
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 |
This is based in INLA::inla.as.sparse(), but allow all combinations of 'na.rm' and 'zeros.rm'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.