Computes the standard error of the mean of a numeric vector as round(sqrt(var(x)/length(x)), 3)
standard_error(x)
A numeric vector.
A numeric value.
The function removes NA
values before computing the standard error, and rounds the result to 3 decimal places.
if(interactive()){
standard_error(runif(10))
}