Learn R Programming

climtrends (version 1.0.6)

IsLeapYear: Determine if a year is a leap year

Description

IsLeapYear returns TRUE for a leap year.

Usage

IsLeapYear(intYear)

Arguments

intYear
year

Value

logical, TRUE = leap year.

Examples

Run this code
IsLeapYear(2010)
IsLeapYear(2011)
IsLeapYear(2012)
IsLeapYear(2013)

Run the code above in your browser using DataLab