nnz: Non-zeros

View source: R/nnz.R

nnzR Documentation

Non-zeros

Description

Number of non-zero elements in a vector

Usage

nnz(h)

Arguments

h

vector

Value

integer

Author(s)

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

Examples


zip<-rnorm(15)
nnz(zip)




PEIP documentation built on Aug. 21, 2023, 9:10 a.m.