leap_year | R Documentation |
This function determines whether a given year is a leap year
leap_year(x)
x |
integer value, representing year number |
Takes a year number as input, and returns TRUE if this is a leap year, and FALSE if not
boolean variable (TRUE or FALSE)
Eike Luedeling, but based on pseudocode from Wikipedia
https://en.wikipedia.org/wiki/Leap_year
leap_year(2015)
leap_year(2016)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.