powered by
Replaces NAs in a numeric vector with the mean of the non-NA values.
NA
i_mean(x)
A numeric vector
x <- c(1,2,3,4, NA) i_mean(x)
Run the code above in your browser using DataLab