gm_mean {NanoTube} | R Documentation

## Calculate the geometric mean

### Description

Calculates the geometric mean of a numeric vector

### Usage

    gm_mean(x, na.rm = TRUE)

### Arguments

`x` | A numeric vector
`na.rm` | Logical (default TRUE). Should NA values be ignored in this calculation? If FALSE, a vector containing NA values will return a geometric mean of NA.

### Value

The geometric mean

### Examples

    gm_mean(c(1, 3, 5))

[Package NanoTube version 1.0.0 Index]