Skip to content
Prev 165227 / 398506 Next

How to write a Surv object to a csv-file?

On Dec 19, 2008, at 2:04 PM, Heinz Tuechler wrote:

            
Yes, if the goal is creating an ASCII structure that can be recovered  
by an R interpreter:

?dput
?dget

 > dput(df.soac, "test")
 > copy.df.soac <- dget("test")
 > all.equal(df.soac, copy.df.soac)

  Doesn't give you a result that you would want to read with Excel,  
but that does not appear to be your goal. You can examine it with a  
text editor.