Skip to content
Back to formatted view

Raw Message

Message-ID: <3412EDCD-C874-4AF0-B0AB-D03B6B55916B@comcast.net>
Date: 2012-12-16T05:01:48Z
From: David Winsemius
Subject: troubles reading a text file
In-Reply-To: <4C617A53-7C9D-4555-A6A3-224D5EE8256A@comcast.net>

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