gmean: Geometric Mean

View source: R/mean.R

gmeanR Documentation

Geometric Mean

Description

Geometric Mean

Usage

gmean(x, trim = 0, na.rm = FALSE, zero.rm = TRUE)

Arguments

x

A numeric vector.

trim

A length-one numeric vector specifying the fraction (0 to 0.5) of observations to be trimmed from each end of x before the mean is computed.

na.rm

A logical scalar: should NA values be stripped before the computation proceeds?

zero.rm

A logical scalar: should zeros be stripped before the computation proceeds?

Value

A numeric vector.


nexus documentation built on Sept. 11, 2024, 6:43 p.m.