[R] subtract a time period from a date

paladini paladini at beuth-hochschule.de
Tue Oct 30 11:25:39 CET 2012

Hello everybody,
how can I reduce e.g. 30 days from a date?
When I do  the following  "2011-05-01 CEST" -"2011-04-01 CEST" I get: 
"Time difference of 30 days"
an thats fine.

But when I try "2011-05-01 CEST" - 30 I get nonsense.
So how can I subtract some days, month or years from a date?

thanking you in anticipation

Claudia Paladini

More information about the R-help mailing list