powered by
Calculates the geometric mean of a numeric vector
gm_mean(x, na.rm = FALSE, zero.propagate = TRUE)
A numeric vector
A flag specifying whether to remove missing values.
A flag specifying whether to propagate zero values.
A number of the geometric mean.
# NOT RUN { gm_mean(c(3, 66, 22, 17)) # }
Run the code above in your browser using DataLab