Non-zeros

Share:

Description

Number of non-zero elements in a vector

Usage

1
nnz(h)

Arguments

h

vector

Value

integer

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

Examples

1
2
zip<-rnorm(15)
nnz(zip)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.