R/statistics.R
gm.Rd
Calculate geometric mean
gm(x)
Numeric vector.
The geometric mean. NA is returned if there are any non-positive elements in x.
NA
x
Justin Wilkins, justin.wilkins@occams.com
gm(c(0.5, 7, 8, 5)) #> [1] 3.439791