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 Sept. 15, 2023, 5:15 p.m.