Compute the sample geometric mean.
gmean(x, na.rm = getOption("transx.na.rm"))
x |
Univariate vector, numeric or ts object with only one dimension. |
---|---|
na.rm |
A value indicating whether NA values should be stripped before the computation proceeds. |
Returns a vector with the same class and attributes as the input vector.