♦ R Mean Mode Mode

## ♣ About Mean-Mode-Mode in R

Mean, Median and Mode are statistical metrics which are used to determine various properties of data.For significantly large Data Set, it is practically found that 2*Mean+Mode=3Median.

## ♣ Example1: Mean in R

Mean is the average of the Data Set.It can be found by the mean() method in R.

In this example, mean is calculated for Vector of Data Points.

Example

Input:

Output:

## ♣ Example2: Median in R

Median is the Middlemost occurring Data Point of the Data Set.It can be found by the median() method in R.

In this example, median is calculated for Vector of Data Points.

Example

Input:

Output:

## ♣ Example3: Mode in R

Mode is the Most occurring Data Point of the Data Set.There is no specific in-built function in R for defining Mode.

Although a function mode() is defined in the example below.

In this example, mode is calculated for Vector of Data Points.

Example

Input:

Output: