harm_mean: Compute the harmonic mean of a numeric vector

View source: R/internal_functions.R

harm_meanR Documentation

Compute the harmonic mean of a numeric vector

Description

The function computes the harmonic mean of a numeric vector

Usage

harm_mean(x)

Arguments

x

A numeric vector

Value

A numeric value corresponding to the harmonic mean of the vector

Author(s)

P. Savary

Examples

x <- c(10, 2, 5, 15)
hm <- harm_mean(x)

graph4lg documentation built on Feb. 16, 2023, 5:43 p.m.