R: Calculate Mean, Median, Mode, Variance, Standard Deviation

This article shows how to calculate Mean, Median, Mode, Variance, and Standard Deviation of any data set using R programming language. Mean: Calculate sum of all the values and divide it with the total number of values in the data set. > x <- c(1,2,3,4,5,1,2,3,1,2,4,5,2,3,1,1,2,3,5,6) # our data set > mean.result = mean(x) # calculate … Read more