[R] write.csv with append = TRUE

R. Michael Weylandt michael.weylandt at gmail.com
Wed Oct 10 16:56:03 CEST 2012


write.table() should append just fine. write.csv() doesn't append I'm
told because there's no guarantee it matches the column headings of
the original file. That said, write.table(..., append = TRUE, sep =
",") is a pretty good approximation.

Cheers,
Michael

On Wed, Oct 10, 2012 at 3:44 PM, Alex van der Spek <doorz at xs4all.nl> wrote:
> Is there a way to make any of the write functions (.table or .csv) append
> to the same file?
>
> I get this warning message and do not know how to enable the appending.
>
> Warning messages:
> 1: In write.csv(names(Lbys)[c], fo, append = TRUE) :
>   attempt to set 'append' ignored
> 2: In write.csv(Lbys[[c]], fo, append = TRUE) :
>   attempt to set 'append' ignored
>
>
> Regards,
> Alex van der Spek
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list