getWeightedMean | R Documentation |
Get the mean applying some weights
getWeightedMean(y, weights = NULL, norm = TRUE)
y |
a vector to compute the mean for |
weights |
the vector of weights, can be NULL, then will just return mean |
norm |
normalize the weights so that they have mean of 1, default is to normalize |
the weighted mean
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.