[R] Append to a csv file
David Winsemius
dwinsemius at comcast.net
Tue Apr 21 02:47:38 CEST 2009
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, append=T) . the csv file looks
> fine
> but I always get the following warning message
>
>
> Warning messages:
> 1: In write.table(mydata, file =”data.csv”, ... :
> appending column names to file
>
>
> Does anyone see why R print out this warning message?
Have you looked at the help page for write.csv? The answer rather
leaps out of the page at you. It's telling you that mixed in with
your data will be a bunch of column names.
--
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
More information about the R-help
mailing list