skewness: Skewness

View source: R/DataUnderstanding.R

skewnessR Documentation

Skewness

Description

Skewness

Usage

skewness(InputVariable, na.rm = FALSE)

Arguments

InputVariable

numerical or logical. Inputvariable has to be a numerical or logical vector. Other inputs are not allowed. NA values are allowed and can be removed using argument 'na.rm'

na.rm

logical- Logical value if NA values should be removed. default is 'FALSE', NAs will not be removed and result is NA. Set to 'TRUE' to remove NA values.

Value

numerical. Returns a single value representing the skewness.

Examples

skewness(InputVariable = rnorm(1E7)) # result should be approx. 0
skewness(InputVariable = rlnorm(1E7)) # result should be > 5

masem-research/masemDataUnderstanding documentation built on May 5, 2022, 12:40 a.m.