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), firstname.lastname@example.org, http://www.kasparrufibach.ch
vec <- sample(c(round(runif(10, 1, 3)), rep(NA, 10)))
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.