nz: nz

nzR Documentation

nz

Description

outputs the nonzero entries of a vector or array

Usage

nz(x, zero = 0, full = FALSE, matrix = TRUE)

Arguments

x

length(x)

zero

integer specifying what to use as the "zero" value in the input (=0)

Value

data.frame of row id col id value pairs

Author(s)

Marcin Imielinski


mskilab/skitools documentation built on June 15, 2025, 2:54 p.m.