powered by
Calculate the geometric mean for a numeric vector.
GeometricMean(x, na.rm = TRUE, zero.rm = TRUE)
The geometric mean as numeric scalar.
Numeric vector.
Should NAs be removed? (default=TRUE)
Should zeros be removed? (default=TRUE)
# NOTE: only intended for internal use and not part of the API tricolore:::GeometricMean(0:100) tricolore:::GeometricMean(0:100, zero.rm = FALSE)
Run the code above in your browser using DataLab