powered by
Calculate geometric mean
gm(x)
The geometric mean. NA is returned if there are any non-positive elements in x.
NA
x
Numeric vector.
Justin Wilkins, justin.wilkins@occams.com
gm(c(0.5, 7, 8, 5))
Run the code above in your browser using DataLab