Compute the weighted mean of x.
.wmean(x, weights = NULL)
x
numeric vector without NA to compute mean of
weights
weights vector (or NULL)
weighted mean
.wmean(c(1, 2, 3))