Skip to content

Commit

Permalink
update news, lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 18, 2024
1 parent a1fe5f8 commit b4343f0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: datawizard
Title: Easy Data Wrangling and Statistical Transformations
Version: 0.12.3.3
Version: 0.12.3.4
Authors@R: c(
person("Indrajeet", "Patil", , "[email protected]", role = "aut",
comment = c(ORCID = "0000-0003-1995-6531", Twitter = "@patilindrajeets")),
Expand Down
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 b4343f0

Please sign in to comment.