Re: [R] Incrementing Dates

2008-04-22 Thread Gabor Grothendieck
Try: Sys.Date() + 1 seq(Sys.Date(), length = 2, by = "month")[2] seq(Sys.Date(), length = 2, by = "year")[2] R News 4/1 has an article on dates. On Tue, Apr 22, 2008 at 8:17 PM, Worik R <[EMAIL PROTECTED]> wrote: > How can I increment the value of a Date class? > > I want to add a day, month or

Re: [R] Incrementing Dates

2008-04-22 Thread Dirk Eddelbuettel
On Wed, Apr 23, 2008 at 12:17:55PM +1200, Worik R wrote: > How can I increment the value of a Date class? > > I want to add a day, month or year to a date. As the shoe company from Portland would say, "just do it". The key is knowing that the seq() function has a variant operating on the Date cl

[R] Incrementing Dates

2008-04-22 Thread Worik R
How can I increment the value of a Date class? I want to add a day, month or year to a date. cheers Worik [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the