Re: [R] export

From: Søren Højsgaard <Soren.Hojsgaard_at_agrsci.dk>
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
Søren  

> -----Oprindelig meddelelse-----
> Fra: r-help-bounces@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch] 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]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.