View source: R/geometric.mean.R
geometric.mean | R Documentation |
Calculates the geometric mean of a vector.
geometric.mean(x, w = NULL, na.rm = FALSE)
x |
a numeric vector. |
w |
an optional numerical vector of weights the same length as |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
Eric Archer eric.archer@noaa.gov
x <- rlnorm(100)
mean(x)
median(x)
geometric.mean(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.