Learn R Programming

cumstats (version 1.0)

skewness: Skewness

Description

This function computes skewness of given numeric data.

Usage

skewness(x)

Arguments

x
a numeric vector.

Value

A numeric value of skewness. Returns NA if x contains NA value(s), and NaN if length(unique(x))==1 is TRUE.

References

Komsta, L. and Novomestky, F. (2015). moments: Moments, cumulants, skewness, kurtosis and related tests. R package version 0.14. https://CRAN.R-project.org/package=moments

See Also

cumskew

Examples

Run this code
skewness(c(9, 1, 3, 0))

Run the code above in your browser using DataLab