Function calculating the geometric mean of numeric vectors

geometric_mean(x, na.rm = FALSE)

Arguments

x

A numeric vector

na.rm

Should NA values be ignored

Value

The geometric mean.

Examples

geometric_mean(c(1,3, 9))
#> Error in geometric_mean(c(1, 3, 9)): konnte Funktion "geometric_mean" nicht finden
geometric_mean(c(1,3, NA))
#> Error in geometric_mean(c(1, 3, NA)): konnte Funktion "geometric_mean" nicht finden
geometric_mean(c(1,3, NA), na.rm = TRUE)
#> Error in geometric_mean(c(1, 3, NA), na.rm = TRUE): konnte Funktion "geometric_mean" nicht finden