Custom time periods

You can create a custom indexing function to use with tsibble package, see this related thread:

Not simple solution comes to my mind at this moment for the custom function, but I have a hunch that there must be one. If my brain wakes up later and I figure it out I will come back with more specific help.