This function calculated skewness of given data.

skewness(x, na.rm = TRUE)

Arguments

x

a numeric vector.

na.rm

logical. Determine whether to remove missing values and calculate them. The default is TRUE.

Value

numeric. calculated skewness.

See also

Examples

set.seed(123)
skewness(rnorm(100))
#> [1] 0.06049948