Coefficient of variation computation
calc_cv.Rd
Computation of the coefficient of variation (CV).
Arguments
- x
A numeric vector
- as_perc
A boolean value, if TRUE the function will multiply the CV by 100 (default = FALSE)
Examples
x <- rnorm(100,1)
calc_cv(x)
#> [1] 0.86