Learn R Programming

rapportools (version 1.1)

skewness: Skewness

Description

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

Usage

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

Run this code
# NOT RUN {
set.seed(0)
x <- rnorm(100)
skewness(x)
skewness(matrix(x, 10))
skewness(mtcars)
rm(x)
# }

Run the code above in your browser using DataLab