I have a date, let's say July 7th, 2020.
my_date <- as.Date("2020/07/07")
I want to offset this date by one month. So it should return August 7th, 2020.
I tried my_date + 30
but it doesn't work if the month has 30 or 31 days.
EDIT
I have to be precise in my question. What if the date is May 31, 2020? It should offset to June 30, 2020. Please, a help in base R is desirable.
Any help will be greatly appreciated.