isLeap {jalcal} | R Documentation |
Determining whether a given year is leap year
Description
Determining whether a given year is leap year
Usage
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
isLeap(1362, 'Jalali')
isLeap(c(2000, 2100))
[Package jalcal version 0.1.0 Index]