R/class-madecomp.R

Defines functions create_madecomp

setClass("madecomp",
  contains = "decomp",
  slots = c(
    k_trend = "numeric",
    k_season = "numeric"
  )
)

create_madecomp <- function(decomp, ts_name, frequency, k_trend, k_season) {
  
  methods::new("madecomp",
    decomp = decomp,
    ts_name = ts_name,
    frequency = frequency,
    k_trend = k_trend,
    k_season = k_season
  )
  
}

Try the deseats package in your browser

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

deseats documentation built on Sept. 11, 2024, 8:24 p.m.