Add column with number of observations
## S3 method for class 'tbl_survfit' add_n(x, ...)
x |
object of class " |
... |
Not used |
Example 1
Other tbl_survfit tools:
add_nevent.tbl_survfit()
,
add_p.tbl_survfit()
,
modify
,
tbl_merge()
,
tbl_stack()
,
tbl_survfit()
library(survival) fit1 <- survfit(Surv(ttdeath, death) ~ 1, trial) fit2 <- survfit(Surv(ttdeath, death) ~ trt, trial) # Example 1 ---------------------------------- add_n.tbl_survfit_ex1 <- list(fit1, fit2) %>% tbl_survfit(times = c(12, 24)) %>% add_n()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.