geomean {tsutils} | R Documentation |
Geometric mean
Description
Calculate the geometric mean.
Usage
geomean(x, na.rm = c(FALSE, TRUE), ...)
Arguments
x |
input data (will be considered as a vector). |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
... |
further arguments passed to or from other methods. |
Value
The geometirc mean of the values in x
.
Author(s)
Nikolaos Kourentzes, nikolaos@kourentzes.com.
Examples
geomean(c(0.5,1,1.5))
[Package tsutils version 0.9.4 Index]