ColNNZ | R Documentation |
Count non-zero entries per column of a matrix
ColNNZ(x)
## S4 method for signature 'matrix'
ColNNZ(x)
## S4 method for signature 'dgCMatrix'
ColNNZ(x)
## S4 method for signature 'dgRMatrix'
ColNNZ(x)
## S4 method for signature 'dgTMatrix'
ColNNZ(x)
x |
A matrix, hopefully sparse. |
An integer vector of length ncol(x) with the number of non-zero entries in each column of the matrix.
matrix
: x of class "matrix"
dgCMatrix
: x of class "dgCMatrix"
dgRMatrix
: x of class "dgRMatrix"
dgTMatrix
: x of class "dgTMatrix"
https://stackoverflow.com/questions/51560456/r-package-matrix-get-number-of-non-zero-entries-per-rows-columns-of-a-sparse
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.