Learn R Programming

asbio (version 1.9-2)

G.mean: Geometric mean

Description

Calculates the geometric mean.

Usage

G.mean(x)

Value

Returns the geometric mean.

Arguments

x

A vector of quantitative data.

Author

Ken Aho

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