Skip to content
Prev 167702 / 398503 Next

Looking for a special date function in R

Dear Gabor,

Thanks for that!
Still, it is not really similar to how EDATE works.
With julian(Sys.Date(), Sys.Date() - 10)  one moves 10 days back.
The problem is that I need to move by months, not by days, as months
have different number of days.
I need to come to the same day when I move backward or forward in
time, for example going back one month from today (21.01.2009) I need
to come to 21.12.2008.
I've read through your article in RNews 4/1 but still do not know how
to do what I need to do.

Regards,
Sergey

On Wed, Jan 21, 2009 at 10:44, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote: