I tried to find a built-in for geometric mean but couldn\'t.
(Obviously a built-in isn\'t going to save me any time while working in the shell, nor do I suspect ther
In case there is missing values in your data, this is not a rare case. you need to add one more argument.
You may try following code:
exp(mean(log(i[ is.finite(log(i)) ]), na.rm = TRUE))