Skip to content

Commit

Permalink
Ensure return is named. Fixes #153
Browse files Browse the repository at this point in the history
  • Loading branch information
robjhyndman committed Nov 13, 2024
1 parent 2c8142f commit 6478a86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/guerrero.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#'
#' @export
guerrero <- function(x, lower = -0.9, upper = 2, .period = 2L) {
if(all(x == x[1])) return(1)
if(all(x == x[1])) return(c(lambda_guerrero = 1))

# Prepare seasonal subseries
.period <- max(2L, .period)
Expand Down

0 comments on commit 6478a86

Please sign in to comment.