sd()
sd()
The
sd()
function computes the standard deviation of a variable.
Example:
# Calculate the standard deviation of Thumb
sd(
Fingers$Thumb
)
# Alt: use 'data =' argument instead of '$' (produces same output)
sd(
~Thumb
, data =
Fingers
)
Example output: