powered by
Converts zero values to NA. Useful when zero represents an invalid measurement or when a logarithmic scale is desired.
NA
zerona(x)
An object of the same class with zeros replaced by NA.
A data frame, matrix, or vector containing zeros.
Chun-Sheng Liang <[email protected]>
zerona(0:5) zerona(cbind(a = 0:5, b = c(6:10, 0)))
Run the code above in your browser using DataLab