Description Usage Arguments Value
View source: R/moving_average_pupil.R
Creates a moving average using a specified averageing window if n is 5, then it uses the target value, 2 preceding and 2 following
1 | moving_average_pupil(x, n = 5, centered = TRUE)
|
x |
data |
n |
sed for moving window |
centered |
whether moving average window should be centered (TRUE) or trailing (FALSE) |
return sum divided by count
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.