Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upExtending %m+% to weeks and days #286
Comments
|
We need this one way or another to fix #235. So I am willing to give it a stab. The only issue is that we will need a convention, do we sum years/months first or HMS first. I think years/months first is a bit more meaningful because the function is called |
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.