Computes the coefficient of variation (CV) after log-transformation of the provided data
Arguments
- x
a numeric vector with values that are NOT log-transformed
- na.rm
logical, if TRUE then NA values are stripped from x before computation takes place
Value
numeric vector of length one. If x contains a zero, then NaN is returned. If x is not numeric or integer, NA_real_ is returned
Examples
library(SLINGtools)
cvlog(c(5,6,3,4,5, NA), na.rm = TRUE)
#> [1] 27.082