Skip to content
Prev 169121 / 398506 Next

How to subtract 2 days from a variable storing particular date

Try this:

now <- Sys.time()
seq(now, length = 2, by = "-2 days")[2]

and see R News 4/1 for more on dates.
On Tue, Feb 3, 2009 at 2:48 PM, Suresh_FSFM <suresh.ghalsasi at gmail.com> wrote: