Skip to content
Prev 23986 / 63421 Next

memory problem read.table v array (PR#9526)

There is nothing to reproduce here: we do not have 639.txt.

But note that read.table returns a data frame, and ?array has

     data: a vector (including a list) giving data to fill the array.

so I do wonder if this is what you intended: you seem to have tried to 
create an array list with 639*639 elements.  It is certainly not the same 
sort of object as array(0,dim=c(409600,1)).

Had 639.txt contained 639 rows of reals, your 'a' would be about
639*639*639*8 bytes, beyond the address space of your machine.

as.matrix(read.table("639.txt", header=FALSE)) might have been what you 
are looking for.
On Thu, 22 Feb 2007, wlangdon at essex.ac.uk wrote: