diff options
Diffstat (limited to 'R')
-rw-r--r-- | R/geometric_mean.R | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/R/geometric_mean.R b/R/geometric_mean.R new file mode 100644 index 00000000..646732cd --- /dev/null +++ b/R/geometric_mean.R @@ -0,0 +1,4 @@ +geometric_mean <- function(x, na.rm = FALSE) +{ + exp(mean(log(x), na.rm = na.rm)) +} |