Skip to contents

Calculate skewness

Usage

skewness(x, ..., na.rm = FALSE)

Arguments

x

a numeric vector of length +2L

...

additional arguments to be passed to function

na.rm

option to remove or keep NAs, set to FALSE by default.

Value

a numeric vector of length 1

Examples

s <- rnorm(30,1,1.4)
skewness(s)
#> [1] -0.09229649

air_data <- datasets::airquality
mapply(skewness,air_data)
#>        Ozone      Solar.R         Wind         Temp        Month          Day 
#>           NA           NA  0.341027535 -0.370507250 -0.002344810  0.002600083