[R] troubles reading a text file
David Winsemius
dwinsemius at comcast.net
Sun Dec 16 06:01:48 CET 2012
On Dec 15, 2012, at 8:45 PM, David Winsemius wrote:
>
>
>>
>> Trying read.csv gives this:
>>
>>
>> Error: cannot allocate vector of size 370.5 Mb
>
> That on the other hand suggests you have inadequate machine resources for this job. Perhaps you should be thinking of using other tools than R for this project ... or buying more ram. You should probably have 32 GB for a job this size.
I was wrong about that. The object size in a 64 bit R was:
inp 291382512
> nrow(inp)
[1] 2820
> length(inp)
[1] 18001
> (2000 - 1765)*12
[1] 2820
So it seems to be all there. It's considerably smaller than I guessed.
--
David Winsemius
Alameda, CA, USA
More information about the R-help
mailing list