RE: [R] memory problem in exporting data frame

2003-09-09 Thread Henrik Bengtsson
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas W Blackwell Sent: den 9 september 2003 01:28 To: array chip Cc: [EMAIL PROTECTED] Subject: Re: [R] memory problem in exporting data frame Simplest is to save your workspace using save.image(), then delete

RE: [R] memory problem in exporting data frame

2003-09-09 Thread array chip
Cc: [EMAIL PROTECTED] Subject: Re: [R] memory problem in exporting data frame Simplest is to save your workspace using save.image(), then delete a bunch of large objects other than the data frame that you want to export, and run write.table() again, now that you've made

Re: [R] memory problem in exporting data frame

2003-09-09 Thread Peter Dalgaard BSA
array chip [EMAIL PROTECTED] writes: Hi all, Thanks for all the suggestions. I was able to get the data frame out by first deleting some other large objects in the directory, and then changing the data frame into matrix by as.matrix(), splitting the matrix into 4 blocks and finally using

RE: [R] memory problem in exporting data frame

2003-09-09 Thread Henrik Bengtsson
-Original Message- From: array chip [mailto:[EMAIL PROTECTED] Sent: den 9 september 2003 19:04 To: Henrik Bengtsson; 'Thomas W Blackwell'; Patrick Burns Cc: [EMAIL PROTECTED] Subject: RE: [R] memory problem in exporting data frame Hi all, Thanks for all the suggestions. I

Re: [R] memory problem in exporting data frame

2003-09-08 Thread Patrick Burns
I had a similar problem not long ago. My solution was to look at the definition of write.table and essentially do it by hand. The key steps are to create a matrix of characters that includes the dimnames (if desired), and then use writeLines to put that into a file. My machine has 1G as well

Re: [R] memory problem in exporting data frame

2003-09-08 Thread array chip
Patrick, Thanks for the suggestion. do you mean you need to change each row of the data frame into a text string using something like paste(data[1,],collapse='\t') and then output the resulting character vector into a file using writeLines? It seems not working with my data mainly because my

Re: [R] memory problem in exporting data frame

2003-09-08 Thread Patrick Burns
Yes, you have the operation precisely right. What happens if you coerce your data frame to a matrix: data.mat - as.matrix(data) and then do the paste and writeLines? Pat array chip wrote: Patrick, Thanks for the suggestion. do you mean you need to change each row of the data frame into a