geometric_mean: Geometric Mean

Description Usage Arguments Value Examples

View source: R/k-mer-based.R

Description

Calculates the geometric mean of the specified values.

Usage

1
geometric_mean(x, na_rm = TRUE)

Arguments

x

numeric vector of values for which the geometric mean will be computed

na_rm

logical. Should missing values (including NaN) be removed?

Value

Geometric mean of x or 1 if length of x is 0

Examples

1
geometric_mean(c(0.123, 0.441, 0.83))

transite documentation built on Nov. 8, 2020, 5:27 p.m.