[R] Exporting a list of data frames

Allan Engelhardt allane at cybaea.com
Thu Jun 3 18:01:09 CEST 2010


On 03/06/10 15:24, Christoph Scherber wrote:
> Dear R helpers,
>
> Suppose I have a list of data frames. How can I export them (e.g. as a
> text file) without losing the columns of the individual data.frames?
>    

save(mylist, file="/tmp/foo.RData")

> But somehow I cannot get the information contained in "mylist" exported
> in a nicely looking way. Any ideas? Many thanks for any help!
>    

Define "nicely looking"?  Maybe "dput" but more likely writing each data 
frame to its own file (or combining to one big data frame).

Hope this helps a little.

Allan



More information about the R-help mailing list