is.leapyear: Is a year a leap year?

Description Usage Arguments Value Author(s) Examples

View source: R/is.leapyear.R

Description

Provides information (TRUE/FALSE) whether a year is a leap year (TRUE) or not (FALSE).

Usage

1

Arguments

year

a numeric giving a year

Value

Returns a logical. It is TRUE when 'year' is a leap year according to the Gregorian calender. Else it is false.

Author(s)

Daniel Neumann, daniel.neumann@io-warnemuende.de

Examples

1
2
3
4
5
6
7
8
  is.leapyear(2012)
  # return: TRUE
  
  is.leapyear(2001)
  # return: FALSE
  
  is.leapyear(1998:2010)
  # return: FALSE FALSE  TRUE FALSE FALSE FALSE  TRUE FALSE FALSE FALSE  TRUE FALSE FALSE

neumannd/riverdata documentation built on March 4, 2020, 4:22 a.m.