Description Usage Arguments Details Value Author(s) See Also Examples
Calculates a running sum with respect to a user specified window width.
1 | getRunSum(x, w)
|
x |
numeric vector. The vector for which to calculate the running sum. |
w |
integer. Window width in number of time steps. |
The function implements a special case of
filter
, i.e. the case where the filter consists of 1s
only, see 'Examples' below.
Numeric vector of the same length as x
.
Simon S.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.