Re: [R] Align columns in data frame write.table

2012-08-10 Thread arun
in data frame write.table Does anyone know of a way to specify the alignment of individual columns in a data frame so that after using write.table the columns are aligned in the file? -- View this message in context: http://r.789695.n4.nabble.com/Align-columns-in-data-frame-write-table

Re: [R] Align columns in data frame write.table

2012-08-10 Thread David Winsemius
On Aug 10, 2012, at 6:39 PM, sharx wrote: Does anyone know of a way to specify the alignment of individual columns in a data frame so that after using write.table the columns are aligned in the file? Do you mean by padding with spaces? set numzer.pad to the desired width and then perhap

Re: [R] Align columns in data frame write.table

2012-08-10 Thread Joshua Wiley
I do not know of any option in write.table() that would allow a variable spacer, such as padding with spaces to make columns centered or right aligned. Everything is just separated somehow. You could look at ?format or ?sprintf which have padding/alignment options. Once you had properly padded ch

[R] Align columns in data frame write.table

2012-08-10 Thread sharx
Does anyone know of a way to specify the alignment of individual columns in a data frame so that after using write.table the columns are aligned in the file? -- View this message in context: http://r.789695.n4.nabble.com/Align-columns-in-data-frame-write-table-tp4640007.html Sent from the R hel