Skip to content

Commit

Permalink
Export hfitted.default method
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelloharawild committed Dec 27, 2023
1 parent 79883e7 commit 681359b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ S3method(getResponse,lm)
S3method(getResponse,mforecast)
S3method(getResponse,tbats)
S3method(head,ts)
S3method(hfitted,default)
S3method(logLik,ets)
S3method(nobs,ets)
S3method(plot,Arima)
Expand Down
1 change: 1 addition & 0 deletions R/forecast.R
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ hfitted <- function(object, h=1, FUN=NULL, ...) {
UseMethod("hfitted")
}

#' @export
hfitted.default <- function(object, h=1, FUN=NULL, ...) {
if (h == 1) {
return(fitted(object))
Expand Down

0 comments on commit 681359b

Please sign in to comment.