Question: how to calculate sample standard deviation in r?
Answer: x <- c(1, 2, 3)
sqrt(mean(x ^ 2) - mean(x)^2)
# [1] 0.8164966.