harmean | R Documentation |
Returns the harmonic mean of a vector of numbers.
harmean(x, na.rm = FALSE)
x |
Vector of numbers, required. |
na.rm |
Logical value, optional, FALSE by default. If FALSE, result is NA if any of the values in x is NA. If TRUE, remove the NA values first. |
The harmonic mean is one type of average. It is the reciprocal of the arithmetic mean of the reciprocals. See http://en.wikipedia.org/wiki/Harmonic_mean for many applications of the harmonic mean.
Returns a single number
geomean()
mean()
rms()
harmean(c(1,2,4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.