powered by
Calculate the geometric mean for a numeric vector.
GeometricMean(x, na.rm = TRUE, zero.rm = TRUE)
Numeric vector.
Should NAs be removed? (default=TRUE)
Should zeros be removed? (default=TRUE)
The geometric mean as numeric scalar.
# NOT RUN { tricolore:::GeometricMean(0:100) tricolore:::GeometricMean(0:100, zero.rm = FALSE) # }
Run the code above in your browser using DataLab