is.leapyear: Check for leap years

View source: R/functions.r

is.leapyearR Documentation

Check for leap years

Description

Check for leap years

Usage

is.leapyear(year)

Arguments

year

numeric

Value

logical. TRUE if year is a leap year

Author(s)

Simon Frey

See Also

http://en.wikipedia.org/wiki/Leap_year

Examples

is.leapyear(2000)
is.leapyear(2001)
is.leapyear(c(1970:2100))

freysimon/TigR documentation built on Jan. 26, 2024, 9:01 a.m.