powered by
NAto0(x, value = 0)
NA
v <- sample(c(round(runif(5, 1, 3)), rep(NA, 2))) NAto0(v)
Run the code above in your browser using DataLab