.extract_surv_time {parsnip}R Documentation

Extract survival time

Description

Extract the time component(s) from a survival::Surv() object.

Arguments

surv

A single survival::Surv() object.

Value

A vector when the type is "right" or "left" and a tibble otherwise.


[Package parsnip version 1.2.1 Index]