Skip to content

Commit

Permalink
Partial fail in new Box-Cox-handling in insight 0.99.0.15
Browse files Browse the repository at this point in the history
Fixes #970
  • Loading branch information
strengejacke committed Nov 20, 2024
1 parent d04c989 commit bd151d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/find_transformation.R
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ find_transformation.character <- function(x, ...) {
# helper -----------------------------

.is_division <- function(x) {
any(grepl("(.*)/([0-9\\.]+)(\\)*)$", x)) && !any(grepl("(.*)(\\^|\\*\\*)\\((.*)/(.*)\\)", x))
any(grepl("(.*)/([0-9\\.\\+\\-]+)(\\)*)$", x)) && !any(grepl("(.*)(\\^|\\*\\*)\\((.*)/(.*)\\)", x))
}

.is_box_cox <- function(x) {
any(grepl("\\((.*)\\^[0-9\\.]+-1\\)", x))
any(grepl("\\((.*)\\^[0-9\\.\\+\\-]+-1\\)", x))
}

0 comments on commit bd151d3

Please sign in to comment.