Hi - I have a dataset with daily observations over 240 sequential days. Is there a way to calculate a rolling average that is anchored at the first day? Specifically, I'd like to create a weekly average that updates by week so that the first value is the average of days 1 to 7, the second value is the average of days 1 to 14, the third value days 1 to 21, and so forth to the end.

I can't find a way to make tssmooth behave in this way. But maybe it can be done manually using a foreach loop?

Thanks!