Learn R Programming

DescTools (version 0.99.56)

NZ: Non Zero Elements

Description

Return a vector with all zero elements removed.

Usage

NZ(x)

Value

numerich vector

Arguments

x

numeric vector

Author

Andri Signorell <andri@signorell.net>

Examples

Run this code
x <- c(1,2,0,3)
NZ(x)

Run the code above in your browser using DataLab