R/harm_mean.R

Defines functions harm_mean

## File Name: harm_mean.R
## File Version: 0.01


#***********************************************
# compute harmonic mean
harm_mean <- function(x)
{
    exp( mean( log(x) ) )
}
#***********************************************

Try the immer package in your browser

Any scripts or data that you put into this service are public.

immer documentation built on May 29, 2024, 11:52 a.m.