# S3 method for default
gmean(x, na.rm = FALSE, ...)
Value
The geometric mean of the values in x is computed, as a numeric
or complex vector of length one. If x is not logical (coerced to
numeric), numeric (including integer) or complex, NA_real_ is returned,
with a warning.
Arguments
x
An R object. Currently there are methods for numeric/logical
vectors and date, date-time and time interval objects. Complex vectors
are allowed for trim = 0, only.
...
further arguments passed to or from other methods.
na.rm
a logical value indicating whether NA values should be
stripped before the computation proceeds.
See Also
mean for the arithmetic mean and hmean for the harmonic
mean.