Try setting row.names=FALSE in the call to write.table. If you really
need those row names, create a variable containing the row names in the
data frame. Then use write.table with row.names=FALSE.
HTH,
Simon.
On Fri, 2008-10-31 at 01:35 +, Daren Tan wrote:
> I need to write a data frame al
I need to write a data frame along with its column and row names to a text
file. However, the first row in the text file is always short of one element. I
have tried setting different parameters to write.table but that didn't help.
> m
A B
C 1 2
D 3 4
Using write.table(m, "table.xls", sep="
2 matches
Mail list logo