[R] adding 1 month to a date

From: t c <quantpm_at_yahoo.com>
Date: Wed 12 Oct 2005 - 09:26:08 EST

Within an R dataset, I have a date field called “date_”. (The dates are in the format “YYYY-MM-DD”, e.g. “1995-12-01”.)  

How can I add or subtract “1 month” from this date, to get “1996-01-01” or “ “1995-11-01”.                   


        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Oct 12 09:32:06 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:41 EST