whichNonZero | R Documentation |
This function is soft-deprecated; users are advised to use nzwhich
and nzvals
instead.
whichNonZero(x, ...)
x |
A numeric matrix-like object, usually sparse in content if not in representation. |
... |
Further arguments, ignored. |
A list containing i
, an integer vector of the row indices of all non-zero entries;
j
, an integer vector of the column indices of all non-zero entries;
and x
, a (usually atomic) vector of the values of the non-zero entries.
Aaron Lun
which
, obviously.
x <- Matrix::rsparsematrix(1e6, 1e6, 0.000001)
out <- whichNonZero(x)
str(out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.