Compute the coefficient of variation
ds_cvar(x, data = NULL, na.rm = FALSE)
x | a numeric vector |
---|---|
data | a |
na.rm | a logical value indicating whether NA values should be stripped before the computation proceeds. |
ds_cvar(mtcars$mpg)#> [1] 29.99881ds_cvar(mpg, mtcars)#> [1] 29.99881