Every month i have to produce the following title (which is just a string), i'm looking for a more efficient way of doing this, here is how the titles work
for example here is the following titles per month - the rule is simple, it increments the starting month by 1 and the ending month by 1 each time, but this is based on the current month:
Here are examples:
Month October 2018, Title is = June To August
Month november 2018, Title is = July to September
Month December 2018, Title is = August to October
Month January 2019, Title is = September to November
So the next one in the sequence is going to be:
Month February 2019, Title is = October to December
Is there any way i can produce the next iteration in R? without hard coding as it needs to increment itself correctly
I would like to find a way of basically creating a sequence that uses the above format - but have to be careful when the iteration comes back as there is no 13th month instead it is month 1 (January)