Skip to content

Commit

Permalink
Merge pull request #18 from giannou/master
Browse files Browse the repository at this point in the history
temp bugfix for helperbounds not handling ref data correctly
  • Loading branch information
giannou committed Jul 6, 2023
2 parents c4849cf + 6a45bcc commit ff2706e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/helperBounds.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
helperBounds <- function(x, cfg, type) {
x$ref <- cfg[[type]][x$variable]
for (i in levels(x$variable)) {
x[which(x$variable == i), "ref"] <- cfg[[type]][which(cfg$variable == i)]
}
if(type=="min") {
x$check <- (x$value>=x$ref)
} else if(type=="max") {
Expand Down

0 comments on commit ff2706e

Please sign in to comment.