geometricMean {transite} | R Documentation

## Geometric Mean

### Description

Calculates the geometric mean of the specified values.

### Usage

    geometricMean(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

    geometricMean(c(0.123, 0.441, 0.83))

[Package transite version 1.2.1 Index]