Skip to content
Back to formatted view

Raw Message

Message-ID: <298a6f60911240259m4c4544aeub90888508c5566d5@mail.gmail.com>
Date: 2009-11-24T10:59:35Z
From: e-letter
Subject: write to file append by column

Readers,

Scenario: data x consists of one column;
1
2
3

data y;
4
5
6

Is it possible to write to file such that the file is:
1,4
2,5
3,6

using the write.file function? I have tried the command:

write(x,file="file.csv",ncolumns=1,append=TRUE,sep=",")
write(y,file="file.csv",ncolumns=1,append=TRUE,sep=",")

but the result is:

1
2
3
4
5
6

yours,

rhelpatconference.jabber.org
r 251
mandriva 2008