Skewness

Description

Calculates skewness coefficient for given variable (see is.variable), matrix or a data.frame.

Usage

1
skewness(x, na.rm = TRUE)

Arguments

x

a variable, matrix or a data.frame

na.rm

should NAs be removed before computation?

References

Tenjovic, L. (2000). Statistika u psihologiji - prirucnik. Centar za primenjenu psihologiju.

Examples

1
2
3
4
5
6
set.seed(0)
x <- rnorm(100)
skewness(x)
skewness(matrix(x, 10))
skewness(mtcars)
rm(x)