Re: [R] write.matrix row names vs sink vs capture.output

2011-09-19 Thread Mark Ebbert
Thank you, that's a good idea. I should have looked into that! On Sep 19, 2011, at 8:42 AM, Paul Hiemstra wrote: > Sorry, misread :). Consider my remark as retracted...however > > It looks like it would be relatively simple to rewrite write.matrix a > little bit to include rownames...the cat

Re: [R] write.matrix row names vs sink vs capture.output

2011-09-19 Thread Mark Ebbert
I'm afraid I don't understand your response. As I mentioned in the original question, write.table is way too slow and I need the row names in the file, so setting row.names to FALSE wouldn't accomplish my goal, anyway. And write.matrix doesn't have *any* options to include row names, which baffl

Re: [R] write.matrix row names vs sink vs capture.output

2011-09-19 Thread Paul Hiemstra
Sorry, misread :). Consider my remark as retracted...however It looks like it would be relatively simple to rewrite write.matrix a little bit to include rownames...the cat statement in the while loop of write.matrix could be changed to include a row name. To get he source code of write.matrix

Re: [R] write.matrix row names vs sink vs capture.output

2011-09-19 Thread Paul Hiemstra
What do you want with the row names? The help file for ?write.table lists a row.names argument which can be set to FALSE. regards, Paul On 09/06/2011 02:58 PM, Mark Ebbert wrote: > Thank you for your help. > > The data is meant to be processed by a separate program that expects a simple > matri

Re: [R] write.matrix row names vs sink vs capture.output

2011-09-06 Thread Mark Ebbert
Thank you for your help. The data is meant to be processed by a separate program that expects a simple matrix with row and column names in ascii format. "write.matrix" does exactly what I want except for the row names. It baffles me that this is not an option… On Sep 6, 2011, at 8:22 AM, Paul

Re: [R] write.matrix row names vs sink vs capture.output

2011-09-06 Thread Paul Hiemstra
On 09/06/2011 06:24 AM, Mark Ebbert wrote: > Dear R gurus, > > I am trying to write several large matrices (~ 1GB) to separate files. I have > learned that write.table is simply too slow for this task and was attempting > to use write.matrix, but write.matrix does not have the ability to include

[R] write.matrix row names vs sink vs capture.output

2011-09-06 Thread Mark Ebbert
Dear R gurus, I am trying to write several large matrices (~ 1GB) to separate files. I have learned that write.table is simply too slow for this task and was attempting to use write.matrix, but write.matrix does not have the ability to include row names in the output. Anyone know why that's the