Return a vector with all zero elements removed.

NZ(x)

Arguments

x

numeric vector

Value

numerich vector

Author

Andri Signorell <andri@signorell.net>

Examples

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