geomean | R Documentation |
geomean
computes the anti-log of the mean
of log10-transformed data.
geomean(x)
x |
A numeric value, vector or list. |
This function first log10-transforms the original data x
.
It then back-transforms the mean
of the results from the log10 scale.
If any null values are present in x
they are first replaced with NA
.
Returns the geometric mean of x
.
Felipe Figueiredo
d <- c(10,100,1000) geomean(d) geomean(c(d,0)) # na.rm is TRUE by default for sd()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.