Re: [R] Time arithmetic

2008-04-23 Thread Gabor Grothendieck
library(zoo) ?yearmon library(chron) ?month.day.year ?strptime See R News 4/1. On Wed, Apr 23, 2008 at 6:13 AM, Worik R <[EMAIL PROTECTED]> wrote: > I am a bit worried I am reinventing the wheel. Isn't there a calendar > system in R? > > I have written a function to add months to a date and re

[R] Time arithmetic

2008-04-23 Thread Worik R
I am a bit worried I am reinventing the wheel. Isn't there a calendar system in R? I have written a function to add months to a date and return the number of days resulting. I am newish to R so I am hoping there is a package that can do this sort of date arithmetic for me... Worik DaysInMonth