geometric_mean: Calculate the geometric mean

Description Usage Arguments Value Examples

View source: R/geometric_mean.R

Description

Function calculating the geometric mean of numeric vectors

Usage

1
  geometric_mean(x, na.rm = FALSE)

Arguments

x

A numeric vector

na.rm

Should NA values be ignored

Value

The geometric mean.

Examples

1
2
3
  geometric_mean(c(1,3, 9))
  geometric_mean(c(1,3, NA))
  geometric_mean(c(1,3, NA), na.rm = TRUE)

mkin documentation built on Nov. 17, 2017, 4:02 a.m.