.cv | R Documentation |
R function to compute the coefficient of variation (expressed as a percentage). If there is only a single value, stats::sd = NA. However, one could argue that cv =0; and NA may break the code that receives it. The function returns 0 if the mean is close to zero.
.cv(x)
x |
a vector of values |
This is ODD: abs to avoid very small (or zero) mean with e.g. -5:5
the cv
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.