I want to using monthly time series to forecast a volume.
However, the volume in March and April were both zero and they are completely absent from the series.
So, I want to add two rows to my series, one for march and one for April with volume of zero for each of them. I aggregated my data from daily to monthly and I have something like this:
reprex1 <- tibble( month.yeard = yearmonth(c('2020-03','2020-06')), vol = c(20L, 30L) add_row('2020-04', 20L, .after = 3) ) reprex1
I would like to add 2020 Apr and 2020 May to my series and give them a volume of 0 each.
What is the most efficient way to do this? I tried to use add_row. Something is wrong.