Update trailing_avg_group.r