Description Usage Arguments Value
View source: R/utils_add_running_mean.R
Running mean for a Hyfe metric
1 | add_running_mean(x, y, window)
|
x |
A numeric vector, representing the time variable (e.g., hours, days, or timestamps). |
y |
A numeric vector of the same length as |
window |
Window size of running mean, in number of values of |
A dataframe with two variables: x
= the middle of the time window; y
= the average value of y
within that time window.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.