Re: [R] convert list to text file

2012-03-02 Thread Greg Snow
Or lapply(LIST, cat, file='outtext.txt', append=TRUE) On Thu, Mar 1, 2012 at 6:20 AM, R. Michael Weylandt michael.weyla...@gmail.com wrote: Perhaps something like sink(outtext.txt) lapply(LIST, print) sink() You could replace print with cat and friends if you wanted more detailed control

[R] convert list to text file

2012-03-01 Thread T.Galesloot
Dear R users, Is it possible to write the following list to a text-file? List: [[1]] [1] 500 [[2]] [1] 1 [[3]] [,1] [,2] [,3] [,4] [,5] FID12345 Var20211 I would like to have the textfile look like this: 500 1 FID 1 2 3 4 5 Var 2 0 2 1 1

Re: [R] convert list to text file

2012-03-01 Thread R. Michael Weylandt
Perhaps something like sink(outtext.txt) lapply(LIST, print) sink() You could replace print with cat and friends if you wanted more detailed control over the look of the output. Michael On Thu, Mar 1, 2012 at 5:28 AM, t.galesl...@ebh.umcn.nl wrote: Dear R users, Is it possible to write the