I'm running into some strange behavior when using lubridate
dtStart<-ymd(20000430)
n<-24
dtStart %m+% months(0:n)
I'm expecting 24 month end dates, but I get the 30th of every month, including those months where there are 31 days:
[1] "2000-04-30 UTC" "2000-05-30 UTC" "2000-06-30 UTC" "2000-07-30 UTC" "2000-08-30 UTC" "2000-09-30 UTC" "2000-10-30 UTC" "2000-11-30 UTC" "2000-12-30 UTC"
[10] "2001-01-30 UTC" "2001-02-28 UTC" "2001-03-30 UTC" "2001-04-30 UTC" "2001-05-30 UTC" "2001-06-30 UTC" "2001-07-30 UTC" "2001-08-30 UTC" "2001-09-30 UTC"
[19] "2001-10-30 UTC" "2001-11-30 UTC" "2001-12-30 UTC" "2002-01-30 UTC" "2002-02-28 UTC" "2002-03-30 UTC" "2002-04-30 UTC"
Thanks for any advice on solving this using lubridate? (Not base R)