[R] Leap year?

rkevinburton at charter.net rkevinburton at charter.net
Fri Oct 10 16:29:02 CEST 2008

Given a Date object or simply a year is there an R function to tell me if the it is a leap year or not? I was hoping for something like 'is.leapyear'. I probably can build my own function (year divisible by 4 etc.) but I would rather use an existing function if it is available.

Thank you.


More information about the R-help mailing list