Skip to contents

This function converts the survival attribution results into a data frame format. It can handle both stacked and non-stacked formats.

Usage

# S3 method for class 'surv_result'
as.data.frame(x, ..., stacked = FALSE)

as.data.table.surv_result(x, ..., stacked = FALSE)

Arguments

x

An object of class surv_result containing the survival attribution results.

...

Unused arguments.

stacked

Logical indicating whether to convert to a stacked data frame, i.e., the attributions are stacked on top of each other. Default is FALSE.