roll_modular_multivec: group col by .idx values and sum windows around each .idx...

View source: R/step_climate.R

roll_modular_multivecR Documentation

group col by .idx values and sum windows around each .idx value

Description

group col by .idx values and sum windows around each .idx value

Usage

roll_modular_multivec(col, .idx, weights, aggr, window_size, modulus)

Arguments

col

the list of values indexed by .idx

.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 .idx


cmu-delphi/epipredict documentation built on June 14, 2025, 2:41 a.m.