Calculate Rolling Averages Including the Current Year in R
I’m trying to calculate rolling averages in R, including the current year in the calculation. For simplicity, I’m using a data frame with integers. my data are groupped. Here’s a sample data frame: