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
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
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
-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
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
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
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