Re: [R] Exporting a list of data frames

2010-06-03 Thread Allan Engelhardt
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

Re: [R] Exporting a list of data frames

2010-06-03 Thread Christoph Scherber
Dear all, I found one possible solution using a single call to write.table: # assuming that mylist is a named list of data.frames: data(Orange) mylist=list(Orange1=Orange,Orange2=Orange,Orange3=Orange) sapply(1:length(mylist), function(x){ write.table(

[R] Exporting a list of data frames

2010-06-03 Thread Christoph Scherber
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.t