Re: [R] export

From: Søren Højsgaard <>
Date: Mon 08 May 2006 - 20:36:36 EST

One way is to use the sprintf-function which returns strings, and then write these strings in a file. But it is kludgy and there must be better ways... Best

> -----Oprindelig meddelelse-----
> Fra:
> [] På vegne af Andrea Toreti
> Sendt: 8. maj 2006 12:26
> Til: R
> Emne: [R] export
> I have a problem with the export of a simulated matrix
> (nrow=1000, ncol=492). I want to obtain a .txt file with
> fixed format data (five character for example).
> I've tried to use the instructions: options(digits=5)
> followed by write.table(...), but the .txt file reports
> always the data with different lenght, whereas the matrix in
> R gives right result (i.e. the elements have the same lenght).
> Could you help me?
> Thanks
> Andrea Toreti
> [[alternative HTML version deleted]]
> ______________________________________________
> mailing list
> PLEASE do read the posting guide!
> mailing list PLEASE do read the posting guide! Received on Mon May 08 20:40:04 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 08 May 2006 - 22:10:02 EST.

Mailing list information is available at Please read the posting guide before posting to the list.