Mean computation
calc_mean.Rd
Computation of the mean (arithmetic,geometric and harmonic).
Usage
calc_mean(
x,
type = c("arithmetic", "geometric", "harmonic"),
trim = NULL,
weight = NULL
)
Examples
x <- rexp(100,.5)
calc_mean(x,"geometric")
#> [1] 1.20635