View source: R/Main_functions.R
moving_average | R Documentation |
Performs a running average on a numeric vector
moving_average(x, n)
x |
a numeric vector |
n |
integer, radius of the moving avergae (number of points extending on each side of the center point on which the average is computed) |
a smoothed numeric vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.