powered by
sum(x) / length(x)
mean2(x)
sum(x)/length(x)
mean2(c(1:1000000))
Run the code above in your browser using DataLab