Learn R Programming

asbio (version 0.2-1)

G.mean: Geometric mean

Description

Calculates the geometric mean.

Usage

G.mean(x)

Arguments

x
A vector of quantitative data.

Value

  • Returns the geometric mean.

See Also

H.mean, HL.mean

Examples

Run this code
x<-c(2,1,4,5,6,2.4,7,2.2,.002,15,17,.001)
G.mean(x)

Run the code above in your browser using DataLab