powered by
Converts NAs to 0s
nona(vec = NULL)
Character vector.
Required. Character or Numeric vector.
x <- c(NA, 1, 0); nona(x) x <- c(NA, "dk", 0); nona(x)
Run the code above in your browser using DataLab