Skip to content

Commit a80264f

Browse files
committed
avoid a tibble warning
1 parent f9571e2 commit a80264f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

R/logistic_reg_data.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -509,13 +509,15 @@ set_pred(
509509
res_1 <- res_2
510510
res_1$lo <- 1 - res_2$hi
511511
res_1$hi <- 1 - res_2$lo
512-
res <- bind_cols(res_1, res_2)
513512
lo_nms <- paste0(".pred_lower_", object$lvl)
514513
hi_nms <- paste0(".pred_upper_", object$lvl)
515-
colnames(res) <- c(lo_nms[1], hi_nms[1], lo_nms[2], hi_nms[2])
514+
colnames(res_1) <- c(lo_nms[1], hi_nms[1])
515+
colnames(res_2) <- c(lo_nms[2], hi_nms[2])
516+
res <- bind_cols(res_1, res_2)
516517

517-
if (object$spec$method$pred$conf_int$extras$std_error)
518+
if (object$spec$method$pred$conf_int$extras$std_error) {
518519
res$.std_error <- apply(results, 2, sd, na.rm = TRUE)
520+
}
519521
res
520522
},
521523
func = c(pkg = "parsnip", fun = "stan_conf_int"),

0 commit comments

Comments
 (0)