Skip to content
Prev 284635 / 398502 Next

Wriritng to a CSV file

Okay, so I understood that appending can only happen row-wise. Therefore I tried with following code:
?
Warning message:
In write.csv(matrix(1:5, 1), "dat.csv", append = TRUE) :
? attempt to set 'append' ignored

It is destroying my previous file. Where I have done wrong?
?
Thanks,


----- Original Message -----
From: Uwe Ligges <ligges at statistik.tu-dortmund.de>
To: Ron Michael <ron_michael70 at yahoo.com>
Cc: "r-help at r-project.org" <r-help at r-project.org>
Sent: Thursday, 9 February 2012 1:07 AM
Subject: Re: [R] Wriritng to a CSV file
On 08.02.2012 20:14, Ron Michael wrote:
Since these text files are written line by line, you cannot add a column 
afterwards, you can just append rows.

Hence read the first column and write a two column data.frame afterwards.

Uwe Ligges