powered by
Function calculating the geometric mean of numeric vectors
geometric_mean(x, na.rm = FALSE)
A numeric vector
Should NA values be ignored
The geometric mean.
# NOT RUN { geometric_mean(c(1,3, 9)) geometric_mean(c(1,3, NA)) geometric_mean(c(1,3, NA), na.rm = TRUE) # }
Run the code above in your browser using DataLab