summary.Surv: Summary Information of Surv Object

View source: R/Surv.R

summary.SurvR Documentation

Summary Information of Surv Object

Description

The missing S3 method of the generic function summary for Surv object.

Usage

## S3 method for class 'Surv'
summary(object, ...)

Arguments

object

a Surv object

...

additional parameters, currently of no use

Value

The function summary.Surv() returns a character vector.

Note

Without function summary.Surv(), the S3 generic function summary dispatches to function summary.default if the input is a Surv object.

See Also

summary.factor

Examples

aml2 = survival::aml |>
 within.data.frame(expr = {
  os = survival::Surv(time = time, event = status)
  time = status = NULL
 })
summary(aml2$os)
summary(aml2)

heart2 = survival::heart |>
 within.data.frame(expr = {
  os = survival::Surv(time = start, time2 = stop, event = event)
  start = stop = event = NULL
 })
summary(heart2$os)
summary(heart2)


groupedHyperframe documentation built on March 10, 2026, 5:08 p.m.