sd() — Standard deviation

Tells you how far the numbers usually sit from the average.

sd(x)

Key idea

Definition

each value
the mean
how many values
the standard deviation

Where you'd use it

Frequently asked questions

Sample or population SD?
R’s sd() is the sample SD (÷ n − 1). Multiply by √((n−1)/n) for the population SD.
What units is SD in?
The same units as the data (variance is in squared units).