Skip to content

Commit 056fa0f

Browse files
committed
fix(mstl): drop short seasonal periods from the msts attribute
1 parent fc8e015 commit 056fa0f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

R/mstl.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ mstl <- function(
3838
warning("Dropping seasonal components with fewer than two full periods.")
3939
msts <- msts[msts < n / 2]
4040
x <- msts(x, seasonal.periods = msts)
41+
attr(origx, "msts") <- msts
4142
}
4243
msts <- sort(msts, decreasing = FALSE)
4344
} else if (is.ts(x)) {

0 commit comments

Comments
 (0)