Coefficient of variation
Compute the coefficient of variation of a numeric vector x
,
defined as the ratio between the standard deviation and the mean.
cv(x, na_rm = FALSE, ...)
x |
numeric. A numeric vector. |
na_rm |
logical. Should missing values be removed before computing the coefficient of variation? |
... |
Additional arguments to be passed to |
A numeric value, the coefficient of variation.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.