R/coeffVar.R

#' Calculates the coefficient of variation
#'
#' Calculates the coefficient of variation (as a percent)
#'
#' @param x a vector
#'
#' @return Coefficient of variation, 100 * SD / mean.
coeffVar <- function(x) {
    return(100 * sd(x) / mean(x))
}
gregorp/rlandscape documentation built on May 17, 2019, 8:36 a.m.