Skip to content

Commit

Permalink
Merge branch 'main' into n_in_data_modify
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke authored Sep 18, 2024
2 parents 3a86c48 + b4343f0 commit a0dadf8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ CHANGES
case, names are used as values for the `replacement` argument (i.e. `pattern`
can be a character vector using `<new name> = "<old name>"`).

* Minor additions to `reshape_ci()` to work with forthcoming changes in the
`{bayestestR}` package.

# datawizard 0.12.3

CHANGES
Expand Down
8 changes: 4 additions & 4 deletions R/reshape_ci.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ reshape_ci <- function(x, ci_type = "CI") {
if ("Parameter" %in% names(x)) {
idvar <- "Parameter"
remove_parameter <- FALSE
} else if (!is.null(attr(x, "idvars"))) {
idvar <- attr(x, "idvars")
remove_parameter <- FALSE
} else {
} else if (is.null(attr(x, "idvars"))) {
idvar <- "Parameter"
x$Parameter <- NA
remove_parameter <- TRUE
} else {
idvar <- attr(x, "idvars")
remove_parameter <- FALSE
}

x <- stats::reshape(
Expand Down

0 comments on commit a0dadf8

Please sign in to comment.