Learn R Programming

asbio (version 1.9-7)

H.mean: Harmonic mean

Description

Calculates the harmonic mean.

Usage

H.mean(x)

Value

Returns the harmonic mean.

Arguments

x

Vector of quantitative data.

Author

Ken Aho

See Also

G.mean, HL.mean

Examples

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

Run the code above in your browser using DataLab