You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#' Cumulative Geometric Mean#' #' @family Vector Function#' #' @author Steven P. Sanderson II, MPH#' #' @details#' A function to return the cumulative geometric mean of a vector.#' `exp(cummean(log(.x)))`#' #' @description #' A function to return the cumulative geometric mean of a vector.#' #' @parm .x A numeric vector#' #' @examples #' x <- mtcars$mpg#' #' cgmean(x)#' #' @return #' A numeric vector#' #' @export#' cgmean<-function(.x){
exp(cummean(log(.x)))
}
Function:
Example:
The text was updated successfully, but these errors were encountered: