Learn R Programming

DescTools (version 0.99.60)

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 <[email protected]>

Examples

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

Run the code above in your browser using DataLab