R/statistics.R

Defines functions rsd

#' Relative Standard Deviation
#'
#' @param values a `numeric` vector of values.
#' @noRd
rsd <- function(values) {
  ifelse(mean(values) != 0, (sd(values) / mean(values)), NA_real_)
}

Try the mpactr package in your browser

Any scripts or data that you put into this service are public.

mpactr documentation built on April 3, 2025, 6:19 p.m.