Skip to content

Commit

Permalink
Update ard_survival_survdiff.R
Browse files Browse the repository at this point in the history
  • Loading branch information
ddsjoberg committed Apr 15, 2024
1 parent e6c7bc0 commit 3ca7f79
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions R/ard_survival_survdiff.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,15 @@ ard_survival_survdiff <- function(formula, data, rho = 0, ...) {
.add_survdiff_stat_labels() |>
dplyr::mutate(
context = "survival_survdiff",
warning = lst_glance[["warning"]],
error = lst_glance[["error"]]
warning = lst_glance["warning"],
error = lst_glance["error"],
fmt_fn = map(
.data$stat,
function(x) {
if (is.numeric(x)) return(1L)
NULL
}
)
) |>
cards::tidy_ard_column_order() %>%
{structure(., class = c("card", class(.)))} # styler: off
Expand Down

0 comments on commit 3ca7f79

Please sign in to comment.