Compute the coefficient of variation

ds_cvar(x, na.rm = FALSE)

Arguments

x

a numeric vector containing the values whose mode is to be computed

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

Details

Any NA values are stripped from x before computation takes place.

Deprecated Function

stat_cvar() has been deprecated. Instead use ds_cvar().

Examples

ds_cvar(mtcars$mpg)
#> [1] 29.99881