Weighted harmonic mean of a vector. NA
are skipped by default.
Examples
# a vector of values
x <- 1:10
# a vector of weights
w <- runif(10)
# weighted harmonic mean
a_hmean(x,w)
#> [1] 2.879339
Weighted harmonic mean of a vector. NA
are skipped by default.
# a vector of values
x <- 1:10
# a vector of weights
w <- runif(10)
# weighted harmonic mean
a_hmean(x,w)
#> [1] 2.879339