gm_mean: Calculate geometric mean

Description Usage Arguments Value Examples

View source: R/get_ssddata.R

Description

Calculates the geometric mean of a numeric vector

Usage

1
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

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

ssddata documentation built on Nov. 5, 2021, 9:11 a.m.