[R] Leap year?

John Kane jrkrideau at yahoo.ca
Fri Oct 10 18:00:35 CEST 2008


perhaps leapyear()  http://finzi.psych.upenn.edu/R/library/pheno/html/leapyear.html



--- On Fri, 10/10/08, rkevinburton at charter.net <rkevinburton at charter.net> wrote:

> From: rkevinburton at charter.net <rkevinburton at charter.net>
> Subject: [R] Leap year?
> To: "r-help" <r-help at 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 at 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]]



More information about the R-help mailing list