[R] How to extract table results from survival summary object

Juan Andres Hernandez jhernandezcabrera at gmail.com
Tue Oct 7 15:40:57 CEST 2014


Hi. I need to extract the "matrix" or "data.frame" results from a survival
object.

library(survival)
data(lung)
mod=with(lung, survfit(Surv(time,death)~ 1))
res=summary(mod)

res show in consola the "matrix" I am looking for, but I can't find the way
to save or assign this table to an object. Anyone knows how to solve it.
Thank's in advance

Juan A. Hernández

	[[alternative HTML version deleted]]



More information about the R-help mailing list