Learn R Programming

aorsf (version 0.1.4)

as.data.table.orsf_summary_uni: Coerce to data.table

Description

Convert an 'orsf_summary' object into a data.table object.

Usage

# S3 method for orsf_summary_uni
as.data.table(x, ...)

Value

a data.table

Arguments

x

an object of class 'orsf_summary_uni'

...

not used

Examples

Run this code

if (FALSE) {

library(data.table)

object <- orsf(pbc_orsf, Surv(time, status) ~ . - id, n_tree = 25)

smry <- orsf_summarize_uni(object, n_variables = 2)

as.data.table(smry)

}


Run the code above in your browser using DataLab