Skip to content

Commit

Permalink
Linting: switch logic of ifelse statement for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmbaazam committed Nov 15, 2023
1 parent 8d59c62 commit 8a8af63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ make_conf <- function(value, CrI = 90, reverse = FALSE) {
)
conf <- paste0(
value$median, " (",
ifelse(!reverse, CrI$lower, CrI$upper), " -- ",
ifelse(!reverse, CrI$upper, CrI$lower), ")"
ifelse(reverse, CrI$upper, CrI$lower), " -- ",
ifelse(reverse, CrI$lower, CrI$upper), ")"
)
return(conf)
}
Expand Down

0 comments on commit 8a8af63

Please sign in to comment.