# Learn R: Mean, Median, and Mode

Learn to use R or manually calculate the mean, median, and mode of real-world datasets.

Start## Key Concepts

Review core concepts you need to learn to master this subject

Mean of a Dataset

Mean of a Dataset

The *mean*, or average, of a dataset is calculated by adding all the values in the dataset and then dividing by the number of values in the set.

For example, for the dataset `[1,2,3]`

, the mean is `1+2+3`

/ `3`

= `2`

.

Mean in R

Lesson 1 of 3

## What you'll create

Portfolio projects that showcase your new skills

## How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory