how to compute standard deviation in rstudio?
For that, you loop through the data set with a variable, say i and subtract i every time with the mean. Mean can be calculated as mean(dataset) . The result is the variance. So, for calculating the standard deviation, you have to square root the above value.