nnz: Non-zeros

Description Usage Arguments Value Author(s) Examples

View source: R/nnz.R

Description

Number of non-zero elements in a vector

Usage

1
nnz(h)

Arguments

h

vector

Value

integer

Author(s)

Jonathan M. Lees<[email protected]>

Examples

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

PEIP documentation built on Jan. 20, 2018, 9:03 a.m.