R/unique.stlpp.R

Defines functions unique.stlpp

Documented in unique.stlpp

#' @export
unique.stlpp <- function(x,...){
  if (!inherits(x, "stlpp")) stop("X should be from class stlpp")

  Y <- unique(as.data.frame(x$data),...)
  X <- as.stlpp(Y$x,Y$y,Y$t,L=domain(x))
  return(X)
}

Try the stlnpp package in your browser

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

stlnpp documentation built on Nov. 11, 2022, 9:11 a.m.