View source: R/As_TsparseMatrix.R
As_TsparseMatrix | R Documentation |
To implement adaption needed after Matrix ver. 1.4-2 since
as(from, "dgTMatrix")
no longer allowed.
As_TsparseMatrix(from, do_drop0 = TRUE)
from |
A matrix |
do_drop0 |
whether to run |
This function is made to replace as(from, "dgTMatrix")
and as(drop0(from), "dgTMatrix")
in SSBtools
and related packages.
A matrix. Virtual class is TsparseMatrix
. Class dgTMatrix
expected.
Matrix:::.as.via.virtual
in development version of package Matrix
(date 2022-08-13) used to generate code.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.