isLeapYear | R Documentation |
Returns TRUE
if the year is a leap year. You can use "negative" years for BCE.
isLeapYear(x)
x |
Integer or vector of integers representing years. |
Vector of logical values.
isLeapYear(1990:2004) # note 2000 *was* not a leap year
isLeapYear(1896:1904) # 1900 was *not* a leap year
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.