decompose function in r code example Example: decompose function in r decompose(x, type = c("additive", "multiplicative"), filter = NULL)