powered by
na2mean(x)
na2mean(c(1,NA,2)) na2mean(c(1,NA,NA,2))
Run the code above in your browser using DataLab