[R] Align columns in data frame write.table

arun smartpink111 at yahoo.com
Sat Aug 11 04:26:13 CEST 2012


HI,

Not sure how you want to align the columns.

If you want to write the columns in fixed width format, you can use,
write.fwf() from library(gdata).

A.K.



----- Original Message -----
From: sharx <sxu12 at mtlakes.org>
To: r-help at r-project.org
Cc: 
Sent: Friday, August 10, 2012 9:39 PM
Subject: [R] Align columns 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-tp4640007.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list