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<jonathan.lees@unc.edu>

Examples

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

PEIP documentation built on May 30, 2017, 8:06 a.m.

Search within the PEIP package
Search all R packages, documentation and source code