Home » R6 June 2017

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.

Median: The middle value of the data set.

Mode: The most occurring number in the data set. For calculating mode, there is no default function in R. So, we have to create our own custom function.

Variance: How far a set of data values are spread out from their mean.

Standard Deviation: A measure that is used to quantify the amount of variation or dispersion of a set of data values.

Hope this helps. Thanks.


Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed