# Standard Deviation in R (Example)

This article explains how to compute the standard deviation with the sd function in the R programming language.

## Example Data

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

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

## Example: Application of sd Function in R

sd(x) # Compute standard deviation # 2.453198 |

sd(x) # Compute standard deviation # 2.453198

The standard deviation of our example vector is 2.453198.