Description Usage Arguments Value Examples
Generic interactive function for the arithmetic, weighted, geometric, armonic or arithmetic-geometric mean.
1 | mean (x, type)
|
x |
An |
type |
A number from 1 to 5 that identifies which type of mean the user wants to calculate. |
The arithmetic, weighted, geometric, armonic or arithmetic-geometric mean of the values in x is computed, as a numeric or complex vector of length one.
If x is not logical (coerced to numeric), numeric (including integer) or complex, NA_real_
is returned, with a warning.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.