Extract all the missing values in a vector and turn them into a given value.
NAtoZero(v, value = 0)
Value to be given to the missing valus.
Kaspar Rufibach (maintainer), email@example.com, http://www.kasparrufibach.ch
vec <- sample(c(round(runif(10, 1, 3)), rep(NA, 10)))
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.