50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

phenmod (version 1.2-7)

util.isLeapYear: Leap year check

Description

Checks wether a given year is a leap year or not.

Usage

util.isLeapYear(year)

Arguments

year

A year or vector of years to check.

Value

Returns a boolean vector determining wether the given years are leap years (TRUE) or not (FALSE).

Details

This function checks wether a year (yyyy) is a leap year or not.

Examples

Run this code
# NOT RUN {
  util.isLeapYear(2000:2012)
# }

Run the code above in your browser using DataLab