R/isLeapYear.r
isLeapYear.Rd
Returns TRUE if the year is a leap year. You can use "negative" years for BCE.
TRUE
isLeapYear(x)
Integer or vector of integers representing years.
Vector of logical values.
isLeapYear(1990:2004) # note 2000 *was* not a leap year #> [1] FALSE FALSE TRUE FALSE FALSE FALSE TRUE FALSE FALSE FALSE TRUE FALSE #> [13] FALSE FALSE TRUE isLeapYear(1896:1904) # 1900 was *not* a leap year #> [1] TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE