Skip to content

Commit

Permalink
Fix checks
Browse files Browse the repository at this point in the history
  • Loading branch information
edelarua committed May 16, 2024
1 parent 1564b51 commit c308c5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion R/ard_survival_survfit.R
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ ard_survival_survfit <- function(x, times = NULL, probs = NULL, type = NULL) {
#'
#' @inheritParams cards::tidy_as_ard
#' @inheritParams ard_survival_survfit
#' @param start.time (`numeric`)\cr
#' default starting time. See [survival::survfit0()] for more details.
#'
#' @return a `tibble`
#'
Expand Down Expand Up @@ -151,7 +153,7 @@ ard_survival_survfit <- function(x, times = NULL, probs = NULL, type = NULL) {
# tidy survfit results
x_cols <- intersect(names(x), c("time", "n.risk", "surv", "std.err", "upper", "lower", "strata"))
tidy_x <- data.frame(x[x_cols]) %>%
dplyr::rename(estimate = surv, std.error = std.err, conf.high = upper, conf.low = lower)
dplyr::rename(estimate = "surv", std.error = "std.err", conf.high = "upper", conf.low = "lower")

strat <- "strata" %in% names(tidy_x)

Expand Down
5 changes: 4 additions & 1 deletion man/dot-process_survfit_time.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c308c5e

Please sign in to comment.