Skip to content

Commit

Permalink
Unify classes
Browse files Browse the repository at this point in the history
  • Loading branch information
franzmohr committed Jun 18, 2023
1 parent a80b2bc commit 681f4fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion R/bvarxpost.R
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ bvarxpost <- function(object) {
}
}

class(object) <- append("ctryvarest", class(object))
class(object) <- c("ctryvarest", "list")

return(object)
}
6 changes: 2 additions & 4 deletions R/draw_posterior.gvarsubmodels.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,8 @@ draw_posterior.gvarsubmodels <- function(object, ..., FUN = NULL, mc.cores = NUL
}

names(object) <- names_obj

if (is.null(ctry)) {
class(object) <- append("bgvarest", class(object))
}

class(object) <- c("bgvarest", "list")

return(object)
}
Expand Down
4 changes: 1 addition & 3 deletions R/draw_posterior.gvecsubmodels.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ draw_posterior.gvecsubmodels <- function(object, ..., FUN = NULL, mc.cores = NUL

names(object) <- names_obj

if (is.null(ctry)) {
class(object) <- append("bgvecest", class(object))
}
class(object) <- c("bgvecest", "list")

return(object)
}
Expand Down

0 comments on commit 681f4fa

Please sign in to comment.