So far, %m+% works only with periods containing only years and months. Therefore it's not possible to do something like today() %m+% period(c(1,6),c("month","day)".
Would it be possible to extend %m+% in a such way that previous example would be equal to today %m+% period(1,"month") + period(6, "day")?
I would also allow to write more generic code when the unit is not known.
So far,
%m+%works only with periods containing only years and months. Therefore it's not possible to do something liketoday() %m+% period(c(1,6),c("month","day)".Would it be possible to extend
%m+%in a such way that previous example would be equal totoday %m+% period(1,"month") + period(6, "day")?I would also allow to write more generic code when the unit is not known.