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 May 30, 2017, 8:06 a.m.