View source: R/rolling_value.R
rolling_value | R Documentation |
Rolling function of a numeric values
rolling_value(val, by = 12, func = sum)
val |
Ordered vector |
by |
Increment |
func |
Function |
Vector of he same class as val
rolling_value(1:20, by = 5)
rolling_value(1:20, by = 10)
rolling_value(1:20, by = 10, func = mean)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.