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.5201841 0.5021634 1.8353049 4.9530259