[R] Exporting a list of data frames

From: Christoph Scherber <Christoph.Scherber_at_web.de>
Date: Thu, 03 Jun 2010 16:24:30 +0200


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?

Example:

data(Orange)
mylist=list(Orange1=Orange,Orange2=Orange,Orange3=Orange)

I would like to use something like

write(mylist,"mylist.txt")

or

format (mylist...)

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

Best wishes,
Christoph

(using R 2.11.0 on Windows XP)

-- 
Dr. rer.nat. Christoph Scherber University of Goettingen DNPW,
Agroecology Waldweg 26 D-37073 Goettingen Germany phone +49 (0)551 39
8807 fax +49 (0)551 39 8806 Homepage http://www.gwdg.de/~cscherb1

______________________________________________
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.
Received on Thu 03 Jun 2010 - 14:24:53 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 03 Jun 2010 - 16:10:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive