calc_moments: Calculate moments of a numeric vector

Description Usage Arguments Value Examples

View source: R/diagnostics.R

Description

Calculate moments of a numeric vector

Usage

1

Arguments

x

a numeric vector

Value

a named vector of descriptive statistics

Examples

1
2
x <- rexp(1000, 2)
calc_moments(x)

Example output

     mean        sd  skewness  kurtosis 
0.5090677 0.5052434 1.9572121 5.5854921 

fitur documentation built on May 2, 2019, 6:37 a.m.