Return a vector with all zero elements removed.

NZ(x)

Arguments

x

numeric vector

Value

numerich vector

Author

Andri Signorell <[email protected]>

Examples

x <- c(1,2,0,3)
NZ(x)
#> [1] 1 2 3