leap_year: Leap year finder

View source: R/leap_year.R

leap_yearR Documentation

Leap year finder

Description

This function determines whether a given year is a leap year

Usage

leap_year(x)

Arguments

x

integer value, representing year number

Details

Takes a year number as input, and returns TRUE if this is a leap year, and FALSE if not

Value

boolean variable (TRUE or FALSE)

Author(s)

Eike Luedeling, but based on pseudocode from Wikipedia

References

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

Examples



leap_year(2015)  
leap_year(2016)

 

chillR documentation built on Nov. 28, 2023, 1:09 a.m.