[R] Leap year?
dieter.menne at menne-biomed.de
Fri Oct 10 16:55:21 CEST 2008
<rkevinburton <at> charter.net> writes:
> 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.
Simply try "leap year" on R site search. Many alternatives are offered, package
chron has probably the most standard one.
More information about the R-help