gm_mean: Calculates the Geometric Mean

Description Usage Arguments Value

View source: R/tbr_gmean.R

Description

Originally from Paul McMurdie, Ben Bolker, and Gregor on Stack Overflow: https://stackoverflow.com/questions/2602583/geometric-mean-is-there-a-built-in

Usage

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

Arguments

x

vector of numeric values

na.rm

logical TRUE/FALSE remove NA values

zero.propagate

logical TRUE/FALSE. Allows the optional propagation of zeros.

Value

the geometric mean of the vector


tbrf documentation built on April 14, 2020, 7:10 p.m.