running_weighted_mean | R Documentation |
Computes running weighted mean of a vector or matrix, returning the values from each step.
running_weighted_mean(x, w, na.rm)
x |
A numeric vector, matrix, three dimensional array, or an |
w |
A numeric vector of non-negative weights. Will be automatically normalised to sum to one. |
na.rm |
If |
A vector containing the recursive weighted mean estimates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.