nnz | R Documentation |
Number of non-zero elements.
nnz(x)
x |
a numeric or complex vector or matrix. |
the number of non-zero elements of x
.
find
nnz(diag(10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.