rel_dis: Relative Dispersion.

View source: R/descriptive_functions.R

rel_disR Documentation

Relative Dispersion.

Description

Calculates the coefficient of variation (relative dispersion) of a variable. The relative dispersion is defined as the standard deviation over the arithmetic mean.

Usage

rel_dis(x)

Arguments

x

A numerical variable. NA's observations are removed by default.

Value

The coefficient of variation (relative dispersion).

Examples

height <- rnorm(100, 170, 8)
rel_dis(height)

josie-athens/pubh documentation built on Feb. 3, 2024, 4:32 a.m.