TRUE if x is a leap year, FALSE otherwise.

leapYear(x)

Arguments

x

integer year

Author

Alan Jassby, James Cloern

Examples


leapYear(seq(1500, 2000, 100))
#> [1] FALSE  TRUE FALSE FALSE FALSE  TRUE
leapYear(c(1996.9, 1997))
#> [1]  TRUE FALSE