isLeapYear: Is a year a leap year?

isLeapYearR Documentation

Is a year a leap year?

Description

Returns TRUE if the year is a leap year. You can use "negative" years for BCE.

Usage

isLeapYear(x)

Arguments

x

Integer or vector of integers representing years.

Value

Vector of logical values.

Examples

isLeapYear(1990:2004) # note 2000 *was* not a leap year
isLeapYear(1896:1904) # 1900 was *not* a leap year

omnibus documentation built on Sept. 17, 2024, 5:09 p.m.