gm_mean {ssddata} | R Documentation |
Calculate geometric mean
Description
Calculates the geometric mean of a numeric vector
Usage
gm_mean(x, na.rm = FALSE, zero.propagate = TRUE)
Arguments
x |
A numeric vector |
na.rm |
A flag specifying whether to remove missing values. |
zero.propagate |
A flag specifying whether to propagate zero values. |
Value
A number of the geometric mean.
Examples
gm_mean(c(3, 66, 22, 17))
[Package ssddata version 1.0.0 Index]