powered by
Computes the geometric mean of a numeric vector.
geom(x)
A numeric vector
The value of the geometric mean.
# NOT RUN { numvec <- c(10,15,20,25,30) # Creates a numeric vector "numvec" mean(numvec) # Mean of numvec geom(numvec) # Geometric mean of numvec # }
Run the code above in your browser using DataLab