isLeap: Determining whether a given year is leap year

Description Usage Arguments Value Author(s) Examples

View source: R/isLeap.R

Description

Determining whether a given year is leap year

Usage

1
isLeap(year, cal = "Gregorian")

Arguments

year

An integer vector specifying given years

cal

A character string specifying the calender type. Only 'Gregorian' and 'Jalali' are implemented

Value

A logical vector of of the same length as year which indicates wheter given years are leap years or not

Author(s)

Abdollah Jalilian

Examples

1
2
isLeap(1362, 'Jalali')
isLeap(c(2000, 2100))

jalcal documentation built on Sept. 7, 2021, 5:09 p.m.