[R] pretty print of summary

From: Charles Dugas <dugas_at_dms.umontreal.ca>
Date: Sat 12 Mar 2005 - 14:49:43 EST

Dear R-users,

using the interactive mode, the command
> summary(my.survreg.object)
will output details of the object my.survreg.object in a very neat fashion.

I would like to have that sent to a file, in ascii format, as it appears within the interactive mode.
Is that possible ?

This seems like a very simple task, but i haven't found the solution: - print doesn't care about a file option - save(my.surreg.object,file="tmp",ascii=T) almost does it but puts every word on its own line,
so "tmp" contains a very long column of words. - dump will output the structure of the object so it can be loaded back. - write is suited for matrices of data, not arbitrary objects. Something else i should look at ?


Charles Dugas, Ph.D., A.S.A.
Professeur adjoint,
Département de Mathématiques et Statistique
Université de Montréal
tél.	: (514) 343-6433
cell.	: (514) 592-9301

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Mon Mar 14 10:33:56 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:46 EST