Compute the coefficient of variation

ds_cvar(data, x = NULL)

Arguments

data

A numeric vector or data.frame.

x

Column in data.

Examples

# vector ds_cvar(mtcars$mpg)
#> [1] 29.99881
# data.frame ds_cvar(mtcars, mpg)
#> [1] 29.99881