Coefficient of variation

cv(x, na.rm = TRUE)

Arguments

x

Input variable

na.rm

If TRUE missing values are removed before calculation

Value

Coefficient of variation

Examples

cv(runif (100))
#> [1] 0.5196276