geomean1 | R Documentation |
Calculates the geometric mean by adding 1 before logging and subtracting 1 before exponentiating so that provides results even with zero counts. Not used by any wqbc functions but provided as may be helpful if averaging bacterial counts.
geomean1(x, na.rm = FALSE)
x |
A numeric vector of non-negative numbers. |
na.rm |
A flag indicating whether to remove missing values. |
mean(0:9) geomean1(0:9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.