R/utils.R

Defines functions fwindow

Documented in fwindow

#' Window clone
#'
#' @param x 	a time-series (or other object if not replacing values)
#' @param start the start time of the period of interest.
#' @param end the end time of the period of interest.
#' @param ... ignored
#'
#' @return a time-serie
#' @export
fwindow <- function(x,start=NA_real_,end=NA_real_,...) {
  if (is.null(start)) start <- NA_real_
  if (is.null(end)) end <- NA_real_
  Cpp_window(x, getOption("ts.eps"), start, end)
}
arnaud-feldmann/CppTs documentation built on April 11, 2024, 9:47 a.m.