Sets NAs to zero.
na.zero(x)
x
A numeric vector. No test that x is numeric.
Vector of length of x, but with NA's replaced by 0.
na.zero(c(1, NA))