leap_year {CNID}R 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)


[Package CNID version 2.1.1 Index]