Calculates skewness of the values of a numeric vector. This uses the same definition of skewness as
the "skewness()" function in the "e1071" package where type == 2
, which is equivalent to the definition of skewness used in Excel.
Examples
x <- runif(20)
skew(x)
#> [1] -0.3006503