R/coef_var_function.R

Defines functions coef_var

Documented in coef_var

#' @title Coefficient of Variation
#'
#' @description Computes de coefficient of variation of a vector
#' @param x vector from which coefficient of variation will be computed

#'
#' @export
#'
#'
#'
#'

coef_var <- function(x){
  result <- sd(x) / mean(x)
  return(result)
}
RodolfoPelinson/AtlanticForestMetacommunity documentation built on Aug. 5, 2023, 3:53 p.m.