Morning,
i've problem in substracting years for leap year date.
R give me NA if i substract or add 1 years to 2020 - february -29th.
Example:
library("lubridate")
# subsctrac year to leap year date
ymd('2020-02-29') - years(1)
# or
interval(ymd('2017-01-02'), ymd('2020-02-29') - years(1))
the only solutions is using the function for imaginary date:
library("lubridate")
ymd('2020-02-29') %m-% years(1)
?
thanks in advance
bye
MC