perhaps leapyear() http://finzi.psych.upenn.edu/R/library/pheno/html/leapyear.html
--- On Fri, 10/10/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > From: [EMAIL PROTECTED] <[EMAIL PROTECTED]> > Subject: [R] Leap year? > To: "r-help" <r-help@r-project.org> > Received: Friday, October 10, 2008, 10:29 AM > 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. > > Kevin > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, > reproducible code. __________________________________________________________________ [[elided Yahoo spam]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.