# Arithmetic Mean in R (Example)

This page explains how to calculate the arithmetic mean of a numeric data object in the R programming language.

## Example Data

x <- c(6, 6, 8, 5, 3, 9, 1, 7, 5, 2) # Create example vector |

x <- c(6, 6, 8, 5, 3, 9, 1, 7, 5, 2) # Create example vector

## Example: Application of mean Function in R

mean(x) # Compute mean # 5.2 |

mean(x) # Compute mean # 5.2