R/is_leap_year.R

Defines functions is_leap_year

is_leap_year <- function(year) {
  return(year %% 4 == 0 && (year %% 100 != 0 || year %% 400 == 0))
}

Try the cmsafops package in your browser

Any scripts or data that you put into this service are public.

cmsafops documentation built on Sept. 18, 2023, 5:16 p.m.