Skip to contents

Compute geometric mean, optionally removing NA values.

Usage

geom_mean(x, na.rm = TRUE)

Arguments

x

Numeric vector.

na.rm

Whether to remove NA values.

Value

A numeric value representing the geometric mean.