Skip to content

Commit

Permalink
styler
Browse files Browse the repository at this point in the history
  • Loading branch information
edelarua committed May 16, 2024
1 parent c308c5e commit a90ec49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ard_survival_survfit.R
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ ard_survival_survfit <- function(x, times = NULL, probs = NULL, type = NULL) {
x$n.risk <- x$n.risk[, 1]
ms_cols <- c("pstate", "std.err", "upper", "lower")
state_col <- which(colnames(x$pstate) == state)
x[ms_cols] <- lapply(x[ms_cols], function(m) {m[, state_col]})
x[ms_cols] <- lapply(x[ms_cols], function(m) m[, state_col])
x$surv <- x$pstate
}

Expand Down

0 comments on commit a90ec49

Please sign in to comment.