skewness: Skewness

View source: R/skewness.r

skewnessR Documentation

Skewness

Description

Skewness

Usage

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

Arguments

x

numerical vector.

sample

logical. Compute sample skewness or apply correction?

na.rm

logical. Should missing values be removed?

Value

The value of the skewness. If sample = FALSE a correction for sample size is applied.

Examples

# skewness of the height in EUR2170 data
skewness(EUR2170$height, sample = TRUE)
# adults only
skewness(EUR2170$height[EUR2170$age > 20], sample = TRUE)

HervePerdry/M1SP documentation built on Dec. 16, 2024, 8:19 p.m.