Description needed.

geometricMean(x, ...)

harmonicMean(x, ...)

Arguments

x

A numeric vector.

...

Additional arguments to prod or mean.

Value

A numeric vector of length one.

Note

these have not been thoroughly tested to handle NA values, etc.

Author

Alex Chubaty

Examples

series <- 1:10
mean(series)
#> [1] 5.5
geometricMean(series)
#> [1] 4.528729
harmonicMean(series)
#> [1] 3.414172