gmean {transx} | R Documentation |
Geometric Mean value
Description
Compute the sample geometric mean.
Usage
gmean(x, na.rm = getOption("transx.na.rm"))
Arguments
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. |
Value
Returns a vector with the same class and attributes as the input vector.
[Package transx version 0.0.1 Index]