.cv {pastclim} | R Documentation |
Coefficient of variation (expressed as percentage)
Description
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.
Usage
.cv(x)
Arguments
x |
a vector of values |
Details
This is ODD: abs to avoid very small (or zero) mean with e.g. -5:5
Value
the cv
[Package pastclim version 2.0.0 Index]