Description Usage Arguments Value Examples
View source: R/moving_average.R
Create a new map/matrix by doing a moving average on a matrix
1 | moving_average(Z, r)
|
Z |
matrix/dataframe |
r |
integer : the radius of the window of the moving average. Ex : r = 1 implies a window of 3*3 |
matrix (side effects imply a smaller matrix than the Z matrix passed in parametre)
1 | moving_average(matrix(rnorm(10*10, 0,1), nrow = 10), r=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.