R/is_leap_year.r

#' @title is_leap_year
#' @description unknown
#' @family abysmally documented
#' @author  unknown, \email{<unknown>@@dfo-mpo.gc.ca}
#' @export
is_leap_year = function (yr) {
  .Deprecated(msg="Why not use lubridate::leap_year() instead?")
  #\\test to see if yr is a leap year
  yr%%4 == 0 & (yr%%100 != 0 | yr%%400 == 0 )
}
AtlanticR/bio.utilities documentation built on June 21, 2020, 7:43 p.m.