Learn R Programming

descriptr (version 0.5.1)

ds_gmean: Geometric Mean

Description

Compute the geometric mean

Usage

ds_gmean(x, na.rm = FALSE, ...)

Arguments

x

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

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

...

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

ds_hmean mean

Examples

Run this code
# NOT RUN {
ds_gmean(mtcars$mpg)
# }

Run the code above in your browser using DataLab