gm_mean: Calculate geometric mean

View source: R/get_ssddata.R

gm_meanR Documentation

Calculate geometric mean

Description

Calculates the geometric mean of a numeric vector

Usage

gm_mean(x, na.rm = FALSE, zero.propagate = TRUE)

Arguments

x

A numeric vector

na.rm

A flag specifying whether to remove missing values.

zero.propagate

A flag specifying whether to propagate zero values.

Value

A number of the geometric mean.

Examples

gm_mean(c(3, 66, 22, 17))

poissonconsulting/ssddata documentation built on Jan. 16, 2025, 1:53 a.m.