gm | R Documentation |
This function calculates the geometric mean.
gm(x)
x |
a vector |
gm
calculates the geometric mean for all positive entries of a vector.
Please note that there is a faster version available implemented with Rcpp
but it currently do not pass CRAN checks cause of use of Rcpp11 features. This C++ version
accounts for over- and underflows. It is placed in inst/doc
Matthias Templ
gm(c(3,5,3,6,7))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.