Message-ID: <1351559150088-4647804.post@n4.nabble.com>
Date: 2012-10-30T01:05:50Z
From: chuck.01
Subject: changing date by +/- days
In-Reply-To: <1351557465124-4647803.post@n4.nabble.com>
got it, sorry!
structure(1243792800, class = c("POSIXct", "POSIXt"), tzone =
"GMT")-(60*60*24*10)
chuck.01 wrote
> Hi,
> Let say I have a date variable like this:
>
> structure(1243792800, class = c("POSIXct", "POSIXt"), tzone = "GMT")
> [1] "2009-05-31 18:00:00 GMT"
>
> How can I make it 10 days prior, so:
> [1] "2009-05-21 18:00:00 GMT"
>
> I'm randomly selecting dates from a list and want a second value a set #
> of days either before or after.
>
> Thanks ahead of time.
--
View this message in context: http://r.789695.n4.nabble.com/changing-date-by-days-tp4647803p4647804.html
Sent from the R help mailing list archive at Nabble.com.