R/fill.missing.R

Defines functions fill.missing

Documented in fill.missing

#' fills in missing values inside the season with smoothing regression
#'
#' @keywords internal
fill.missing <- function(i.datos) {
  idatos.smo <- suavizado(i.datos, -1)
  donde.missing <- missings.inside(i.datos)
  idatos.fin <- i.datos
  idatos.fin[donde.missing] <- idatos.smo[donde.missing]
  return(idatos.fin)
}
lozalojo/mem documentation built on April 1, 2021, 1:37 a.m.