harmonic_mean: Harmonic means

Description Usage Arguments

View source: R/means.R

Description

Find the harmonic mean.

Usage

1
harmonic_mean(x, zero = FALSE, na.rm = FALSE)

Arguments

x

A numeric vector or data.frame

zero

Logical. If TRUE, 0 values are removed.

na.rm

Logical. If TRUE, NAs will be removed from the data. If zero is TRUE, na.rm will be overridden to TRUE.


jmbarbone/qpm documentation built on July 25, 2020, 10:41 p.m.