View source: R/helper_functions.r
weighted.mean | R Documentation |
Given a vector of values and a vector of weights, compute the weighted mean
weighted.mean(x, w, na.rm = FALSE)
x |
The vector of values |
w |
The vector of weights |
na.rm |
if |
The weighted mean
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.