Sets NAs to new value.
na.replace(x, replace)
x
A numeric vector.
replace
Value for replacing NAs
Vector of length of x, but with NA's replaced by new value.
na.replace(c(1, NA), 2)