Calculate moments of a numeric vector

calc_moments(x)

Arguments

x

a numeric vector

Value

a named vector of descriptive statistics

Examples

x <- rexp(1000, 2)
calc_moments(x)
#>      mean        sd  skewness  kurtosis 
#> 0.5010385 0.4963055 1.8010240 4.6398823