Skip to content

Commit

Permalink
more stable
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 8, 2023
1 parent 3c43fd1 commit c02219b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/print.equivalence_test.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ print.equivalence_test <- function(x, digits = 2, ...) {
cp <- cp[startsWith(cp$Group, "SD/Cor"), ]
matches <- match(cp$Parameter, x$Parameter)
if (length(matches)) {
x$Parameter[matches] <- paste0(
new_pattern <- paste0(
"SD/Cor: ",
cp$Cleaned_Parameter[unique(stats::na.omit(match(x$Parameter, cp$Parameter)))]
)
if (length(new_pattern) == length(matches)) {
x$Parameter[matches] <- new_pattern
}
}
}
}
Expand Down

0 comments on commit c02219b

Please sign in to comment.