as.data.table.orsf_summary_uni {aorsf} | R Documentation |
Convert an 'orsf_summary' object into a data.table
object.
## S3 method for class 'orsf_summary_uni'
as.data.table(x, ...)
x |
an object of class 'orsf_summary_uni' |
... |
not used |
library(data.table)
object <- orsf(pbc_orsf, Surv(time, status) ~ . - id)
smry <- orsf_summarize_uni(object, n_variables = 3)
as.data.table(smry)