roll_modular_multivec | R Documentation |
group col by .idx values and sum windows around each .idx value
roll_modular_multivec(col, .idx, weights, aggr, window_size, modulus)
col |
the list of values indexed by |
.idx |
the relevant periodic part of time value, e.g. the week number |
weights |
how much to weigh each particular datapoint |
aggr |
the aggregation function, probably Quantile, mean or median |
window_size |
the number of .idx entries before and after to include in the aggregation |
modulus |
the maximum value of |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.