Function survival::Surv() (Therneau 2026, v3.8.6) creates a survival object, i.e., an R object of S3 class 'Surv'. Listing 40.1 summarizes the S3 methods for the class 'Surv' in package survival,
The examples in Chapter 40 require (see the explanation of the function name conflict in Section 6.4)
library(groupedHyperframe)
search path & loadedNamespaces on author’s computer
search()
# [1] ".GlobalEnv" "package:groupedHyperframe" "package:stats" "package:graphics" "package:grDevices" "package:utils" "package:datasets"
# [8] "package:methods" "Autoloads" "package:base"
loadedNamespaces() |> sort.int()
# [1] "abind" "base" "cli" "cluster" "codetools" "compiler" "datasets" "deldir" "digest"
# [10] "doParallel" "dplyr" "evaluate" "farver" "fastmap" "fastmatrix" "foreach" "generics" "geomtextpath"
# [19] "GET" "ggplot2" "glue" "goftest" "graphics" "grDevices" "grid" "gridExtra" "groupedHyperframe"
# [28] "gtable" "htmltools" "htmlwidgets" "iterators" "jsonlite" "knitr" "lattice" "lifecycle" "magrittr"
# [37] "Matrix" "matrixStats" "methods" "nlme" "otel" "parallel" "patchwork" "pillar" "pkgconfig"
# [46] "polyclip" "pracma" "R6" "RColorBrewer" "rlang" "rmarkdown" "rstudioapi" "S7" "scales"
# [55] "SpatialPack" "spatstat.data" "spatstat.explore" "spatstat.geom" "spatstat.random" "spatstat.sparse" "spatstat.univar" "spatstat.utils" "splines"
# [64] "stats" "survival" "systemfonts" "tensor" "textshaping" "tibble" "tidyselect" "tools" "utils"
# [73] "vctrs" "viridisLite" "xfun" "yaml"
Table 40.1 summarizes the S3 methods for the class 'Surv' in package groupedHyperframe (v0.3.4),
Summary
aml2 = survival::aml |>
within.data.frame(expr = {
os = survival::Surv(time = time, event = status)
time = status = NULL
})
aml2
# x os
# 1 Maintained 9
# 2 Maintained 13
# 3 Maintained 13+
# 4 Maintained 18
# ✂️ --- output truncated --- ✂️
Therneau, Terry M. 2026.
A Package for Survival Analysis in R.
https://CRAN.R-project.org/package=survival.