geomean | R Documentation |
Calculate the geometric mean of a numeric vector, passing arguments on to mean
.
geomean(x, ...)
x |
numeric vector. All elements must be positive, or an error is thrown. Geometric mean is defined only where all elements are positive. |
... |
optional arguments, passed to |
numeric, the value of the geometric mean
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.