Maybe each dataframe you are adding during the loop include the column name.
I would add
write.csv(mydata, file= âdata.csvâ=F, append=T,col.names=F)
Hope that help
Carlos
To: r-help@r-project.org
Sent: Monday, April 20, 2009 4:39:48 PM
Subject: [R] Append
Try writing to a connection so that the file stays opens.
On Mon, Apr 20, 2009 at 5:39 PM, kayj wrote:
>
> I am looping over a data set and at each loop I am creating a dataframe
> “mydata”
> That I wanted to be saves in a .csv file, but I want all the results to be
> saved in the same file and t
On Apr 20, 2009, at 5:39 PM, kayj wrote:
I am looping over a data set and at each loop I am creating a
dataframe
“mydata”
That I wanted to be saves in a .csv file, but I want all the results
to be
saved in the same file and this is the way I do it
write.csv(mydata, file= “data.csv”=F, a
3 matches
Mail list logo