Skip to content

Commit

Permalink
Update reshape_ci.R
Browse files Browse the repository at this point in the history
  • Loading branch information
mattansb committed Sep 5, 2024
1 parent 8ac3a93 commit e1086a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/reshape_ci.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ reshape_ci <- function(x, ci_type = "CI") {
# Reshape
if (length(unique(x$CI)) > 1) {
if ("Parameter" %in% names(x)) {
idvar <- "Parameter"
remove_parameter <- FALSE
} else if (!is.null(attr(x, "idvars"))) {

Check warning on line 48 in R/reshape_ci.R

View workflow job for this annotation

GitHub Actions / lint / lint

file=R/reshape_ci.R,line=48,col=18,[if_not_else_linter] Prefer `if (A) x else y` to the less-readable `if (!A) y else x` in a simple if/else statement.
idvar <- attr(x, "idvars")
Expand Down

0 comments on commit e1086a4

Please sign in to comment.