leap_year: Calculate whether a given year is a leap year

View source: R/leap_year.R

leap_yearR Documentation

Calculate whether a given year is a leap year

Description

Calculate whether a given year is a leap year.

Usage

leap_year(year)

Arguments

year

A given year, vectorization parameter passing is supported.

Value

TRUE or FALSE. Return TRUE if it is a leap year, FALSE otherwise.

Examples

leap_year(2024)


CNID documentation built on April 4, 2025, 5:22 a.m.