Compute the weighted mean of x.
.wmean(x, weights = NULL)
numeric vector without NA to compute mean of
weights vector (or NULL)
weighted mean
# NOT RUN { .wmean(c(1, 2, 3)) # }
Run the code above in your browser using DataLab