Learn R Programming

descriptr (version 0.1.0)

gmean: Geometric Mean

Description

Compute the geometric mean

Usage

gmean(x, ...)

Arguments

x

a numeric vector containing the values whose geometric mean is to be computed

...

further arguments passed to or from other methods #' @details Any NA values are stripped from x before computation takes place.

Value

Returns the geometric mean of x

See Also

hmean mean

Examples

Run this code
gmean(mtcars$mpg)

Run the code above in your browser using DataLab