Learn R Programming

asbio (version 1.5-5)

H.mean: Harmonic mean

Description

Calculates the harmonic mean.

Usage

H.mean(x)

Arguments

x

Vector of quantitative data.

Value

Returns the harmonic mean.

See Also

G.mean, HL.mean

Examples

Run this code
# NOT RUN {
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