rolling_sum | R Documentation |
Calculates rolling sum of a vector across N points
rolling_sum(vec, n_points)
vec |
numeric vector across which we calculate |
n_points |
rolled vector sum or NULL if the n_points is larger than length of the vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.