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
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
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
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
4 matches
Mail list logo