Skip to content

Commit

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

Expand Down

0 comments on commit 3c43fd1

Please sign in to comment.