Helper function to repeat the aggregate annual value of a series on each period, and possibly lag it.
Details
Applies aggregate.ts to the series to get the annual values
and then repeats those values for every subyear period.
The k parameter is passed to stats::lag.
Examples
aggr_rep_lag(gdp_volume) |> plot()