Skip to content

Commit 7ba45d0

Browse files
committed
fix: preserve positional croston x argument
1 parent dc11fa5 commit 7ba45d0

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

R/croston.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,10 @@ croston <- function(
348348
h = 10,
349349
alpha = 0.1,
350350
type = c("croston", "sba", "sbj"),
351+
x = y,
351352
opt_alpha = FALSE,
352353
opt_crit = c("mse", "mae"),
353-
init = c("naive", "mean"),
354-
x = y
354+
init = c("naive", "mean")
355355
) {
356356
fit <- croston_model(
357357
x,

man/forecast.croston_model.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)