powered by
Compute the coefficient of variation
ds_cvar(x, data = NULL, na.rm = FALSE)
a numeric vector
a data.frame or tibble
data.frame
tibble
a logical value indicating whether NA values should be stripped before the computation proceeds.
# NOT RUN { ds_cvar(mtcars$mpg) ds_cvar(mpg, mtcars) # }
Run the code above in your browser using DataLab