Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/aveytoolkit_geomMean.R
Calculate the geometric mean
1 |
x |
a vector of non-negative numeric values. |
na.rm |
(optional) whether to remove |
zero.propagate |
(optional) logical specifying whether zeros should be progated such that if there are zeros in 'x' 0 should be returned. |
This function handles negative values by returning 'NaN' and zeros by returning '0' by default.
the geometric mean of x
Paul McMurdie, Stefan Avey
http://stackoverflow.com/questions/2602583/geometric-mean-is-there-a-built-in
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.