leap_year: Leap year finder

Description Usage Arguments Details Value Author(s) References Examples

Description

This function determines whether a given year is a leap year

Usage

1

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

1
2
3
4
leap_year(2015)  
leap_year(2016)

 


Search within the chillR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.