[R] Subtracting number of days from a date
Hoeven, Maarten van der
Maarten.van.der.Hoeven at knmi.nl
Wed May 26 17:25:43 CEST 2004
Hi group,
suppose I have a date, say May 15 2004, and I want to now what date it is 23 days before that date. The way to calculate the new date should (...) take account of leap years :)
In pseudocode:
olddate <- "May 15 2004"
newdate <- olddate-23
I looked around in POSIXct etc..., maybe I overlooked?
Thanks,
Maarten
--------------------------------------------------------------
Zie ook/see also: http://www.knmi.nl/maildisclaimer.html
More information about the R-help
mailing list