R/semana.absoluta.R

Defines functions semana.absoluta

Documented in semana.absoluta

#' Transforms relative weeks to absolute weeks in a 1-52 normal season
#'
#' @keywords internal
semana.absoluta <- function(i.semana, i.semana.inicio) {
  return((i.semana <= 53 - i.semana.inicio) * (i.semana + i.semana.inicio - 1) + (i.semana > 53 - i.semana.inicio) * (i.semana + i.semana.inicio - 53))
}

Try the mem package in your browser

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

mem documentation built on Nov. 8, 2018, 5:03 p.m.