R/coef_var.R

Defines functions coef_var

Documented in coef_var

#'
#' Calculate the coefficient of variation
#'
#' @param x a numeric vector
#' @examples
#' x <- rnorm(100)
#' coef_var(x)
#' @export
coef_var <- function(x){
  sd(x) / mean(x)
}
tomlclegg/TomsToolbox documentation built on Dec. 23, 2021, 11:57 a.m.