Calculate the skewness of a numeric variable

skewness(x, na.rm = TRUE)

Arguments

x

numeric vector.

na.rm

if TRUE, delete missing values.

Value

a number

Examples

skewness(mtcars$mpg)
#> [1] 0.610655