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 na.rm.

Note

The original code is in inla.as.sparse() function of the 'INLA' package.


[Package INLAtools version 0.0.1 Index]