is.leapyear: check if a given year is a leap year

View source: R/small-utility-functions.R

is.leapyearR Documentation

check if a given year is a leap year

Description

check if a given year is a leap year

Usage

is.leapyear(year, proleptic = FALSE, doy = FALSE)

Arguments

year

year (integer or vector)

proleptic

use leap years even before 1582.

doy

return days of year instead logical.

Value

logical or integer, if doy is TRUE

Author(s)

Joerg Steinkamp joerg.steinkamp@senckenberg.de


MagicForrest/DGVMTools documentation built on Aug. 23, 2024, 8:05 a.m.