R: Harmonic Mean

harmonic.mean {swfscMisc} | R Documentation

## Harmonic Mean

### Description

Calculate the harmonic mean of a set of numbers.

### Usage

    harmonic.mean(x, na.rm = FALSE)

### Arguments

`x` | a numeric vector.
`na.rm` | a logical value indicating whether NA values should be stripped before the computation proceeds.

### Author(s)

Eric Archer eric.archer@noaa.gov

### Examples

    x <- rlnorm(100)
    mean(x)
    median(x)
    harmonic.mean(x)

[Package swfscMisc version 1.2 Index]