R/is_leap_year.R

Defines functions is_leap_year

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

Try the cmsafvis package in your browser

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

cmsafvis documentation built on July 3, 2024, 5:07 p.m.