gm_CV | R Documentation |
gm_CV
takes as input a numeric vector and returns the geometric
CV, calculated as: sqrt(exp(sd(log(x))^2)-1)
gm_CV(x, na.rm = TRUE, zero.propagate = FALSE)
x |
A vector of numbers |
na.rm |
Should NA values be removed? (logical) |
zero.propagate |
Should zeroes be propagated? (logical) |
gm_CV(rnorm(10, 5, 1))
gm_CV(c(5, 3, 6, 10, 2, 0), zero.propagate = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.