powered by
Calculate the geometric mean of a vector of numbers
gm_mean(x, na.rm = TRUE)
an R numerical object
a logical value indicating whether NA values should be stripped before the computation proceeds.
If all values in x are numeric class, a single numeric class value is returned.
# NOT RUN { x <- c(0:10, 50) gm_mean(x) # }
Run the code above in your browser using DataLab