Computes the coefficient of variation (CV), by dividing the standard deviation (SD) by the arithmetic mean of a set of numbers. If na_rm is TRUE then missing values are removed before calculation is completed
Usage
cv(x, na_rm = TRUE)
Value
(numeric) coefficient of variation
Arguments
x
(numeric) vector of numbers for which to calculate CV
na_rm
(logical) whether to remove missing values from both average and SD calculation