gm_mean: Calculate the geometric mean of a numeric vector

View source: R/balance_check.R

gm_meanR Documentation

Calculate the geometric mean of a numeric vector

Description

Calculate the geometric mean of a numeric vector

Usage

gm_mean(x, na.rm = TRUE)

Arguments

x

Numeric vector. The values to calculate a geometric mean from

na.rm

Logical. If TRUE then NA values will be dropped from x before calculating the geometric mean. Defaults to TRUE

Value

The geometric mean as a single numeric value.


nstauffer/sample.design documentation built on May 9, 2022, 3:21 a.m.