Learn R Programming

dttr2 (version 0.5.2)

dtt_leap_year: Test for Leap Year

Description

Tests whether each year is a leap year.

Usage

dtt_leap_year(x)

Value

A logical vector indicating whether each year is a leap year.

Arguments

x

A date/time vector.

See Also

Other leap year: dtt_feb29_to_28()

Examples

Run this code
dtt_leap_year(as.Date("1999-03-04", "2000-02-01"))

Run the code above in your browser using DataLab