nnz: Non-zeros

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)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.