harm_mean {graph4lg}R 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)

[Package graph4lg version 1.8.0 Index]