Skip to content

Commit

Permalink
Correctly structure Ops.lst_mdl output to be a list of models
Browse files Browse the repository at this point in the history
Resolves #237
  • Loading branch information
mitchelloharawild committed Jun 27, 2020
1 parent 337d0a5 commit 6622dd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Expand Up @@ -8,6 +8,7 @@

* Fixed issue with aggregated date vectors (#230).
* Fixed display of models in `View()` panel.
* Fixed issue with combination models not inheriting vctrs functionality (#237).

# fabletools 0.2.0

Expand Down
2 changes: 1 addition & 1 deletion R/model_combination.R
Expand Up @@ -222,7 +222,7 @@ Ops.mdl_ts <- function(e1, e2){

#' @export
Ops.lst_mdl <- function(e1, e2){
structure(map2(e1, e2, .Generic), class = c("lst_mdl", "list"))
list_of_models(map2(e1, e2, .Generic))
}

#' @importFrom stats var
Expand Down

0 comments on commit 6622dd2

Please sign in to comment.