geomean | R Documentation |
Simple geometric mean function using only is.finite values of log(x).
geomean(x, na.rm = TRUE)
x |
numeric vector |
na.rm |
as in base R functions "a logical value indicating whether NA values should be stripped before the computation proceeds." |
Nikolai Klibansky
## Not run:
x <- c(1,2,10)
geomean(x)
geomean2(x)
mean(x)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.