geomean: Geometric mean: logarithm form

View source: R/geomean.r

geomeanR Documentation

Geometric mean: logarithm form

Description

Simple geometric mean function using only is.finite values of log(x).

Usage

geomean(x, na.rm = TRUE)

Arguments

x

numeric vector

na.rm

as in base R functions "a logical value indicating whether NA values should be stripped before the computation proceeds."

Author(s)

Nikolai Klibansky

Examples

## Not run: 
x <- c(1,2,10)
geomean(x)
geomean2(x)
mean(x)

## End(Not run)


nikolaifish/bamExtras documentation built on July 21, 2023, 8:26 a.m.