Skip to content

Commit 589eb9c

Browse files
committed
Update utils_format.R
1 parent ecfdb28 commit 589eb9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/utils_format.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@
513513
if (any(ran_sd)) {
514514
out$Parameter[ran_sd] <- gsub("^sd_(.*?)__(.*)", "SD \\(\\2\\)", out$Parameter[ran_sd])
515515
if (has_component) {
516-
ran_zi_sd <- ran_sd & out$Component == "zero_inflated"
516+
ran_zi_sd <- ran_sd & out$Component %in% c("zi", "zero_inflated")
517517
if (any(ran_zi_sd)) {
518518
out$Parameter[ran_zi_sd] <- gsub("zi_", "", out$Parameter[ran_zi_sd], fixed = TRUE)
519519
}
@@ -524,7 +524,7 @@
524524
if (any(ran_cor)) {
525525
out$Parameter[ran_cor] <- gsub("^cor_(.*?)__(.*)__(.*)", "Cor \\(\\2~\\3\\)", out$Parameter[ran_cor])
526526
if (has_component) {
527-
ran_zi_cor <- ran_cor & out$Component == "zero_inflated"
527+
ran_zi_cor <- ran_cor & out$Component %in% c("zi", "zero_inflated")
528528
if (any(ran_zi_cor)) {
529529
out$Parameter[ran_zi_cor] <- gsub("zi_", "", out$Parameter[ran_zi_cor], fixed = TRUE)
530530
}

0 commit comments

Comments
 (0)