rms | R Documentation |
Returns the RMS, or quadratic mean of a vector of numbers.
rms(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 quadratic mean is one type of average. It is the square root of the arithmetic mean of the squares. See http://en.wikipedia.org/wiki/Root_mean_square or http://mathworld.wolfram.com/Root-Mean-Square.html for many applications
Returns a single number
geomean()
mean()
harmean()
rms(c(1,2,4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.