Subtracting months - issue with last day of month?
问题 Quick question on dates in R. Check out this snippet of code: Sys.Date() - months(3) # [1] "2013-12-31" Sys.Date() - months(18) # [1] NA I've loaded the package lubridate and followed the instructions provided , and I can't quite get my head around this behavior. It used to work just fine, today's the first day that I've noticed that a subtraction of more than 12 months from today's date yields NA (subtracting less than 12 months works fine). I'd appreciate if anyone can explain to me why