Sachin,
With your dummies stored as integer,  the size of your object would appear
to be 350000 * (4*250 + 8*16) bytes =  376MB.
You said "PC" but did not provide R version information,  assuming windows
then ...
With 1GB RAM you should be able to load a 376MB object into memory.   If you
can store the dummies as 'raw' then object size is only 126MB.
You don't say how you attempted to load the data. Assuming your input data
is in text file (or can be) have you tried scan()? Setup the 'what' argument
with length 266 and make sure the dummy column are set to integer() or
raw().  Then   x = scan(...);  class(x)=" data.frame".
What is the result of memory.limit()?  If it is 256MB or 512MB, then try
starting R with --max-mem-size=800M  (I forget the syntax exactly). Leave a
bit of room below 1GB.  Once the object is in memory R may need to copy it
once, or a few times. You may need to close all other apps in memory,  or
send them to swap.
I don't really see why your data should not fit into the memory you have.
Purchasing an extra 1GB may help.  Knowing the object size calculation (as
above) should help you guage whether it is worth it.
Have you used process monitor to see the memory growing as R loads the
data?  This can be useful.
If all the above fails,  then consider 64-bit and purchasing as much memory
as you can afford. R can use over 64GB RAM+ on 64bit machines. Maybe you can
hire some time on a 64-bit server farm - i heard its quite cheap but never
tried it myself.  You shouldn't need to go that far with this data set
though.
Hope this helps,
Mark


Hi Roger,

 I want to carry out regression analysis on this dataset. So I believe I
can't read the dataset in chunks. Any other solution?

 TIA
 Sachin


roger koenker < rkoenker@uiuc.edu> wrote:
 You can read chunks of it at a time and store it in sparse matrix
form using the packages SparseM or Matrix, but then you need
to think about what you want to do with it.... least squares sorts
of things are ok, but other options are somewhat limited...


url: www.econ.uiuc.edu/~roger Roger Koenker
email rkoenker@uiuc.edu Department of Economics
vox: 217-333-4558 University of Illinois
fax: 217-244-6678 Champaign, IL 61820


On Apr 24, 2006, at 12:41 PM, Sachin J wrote:

> Hi,
>
> I have a dataset consisting of 350,000 rows and 266 columns. Out
> of 266 columns 250 are dummy variable columns. I am trying to read
> this data set into R dataframe object but unable to do it due to
> memory size limitations (object size created is too large to handle
> in R). Is there a way to handle such a large dataset in R.
>
> My PC has 1GB of RAM, and 55 GB harddisk space running windows XP.
>
> Any pointers would be of great help.
>
> TIA
> Sachin
>

	[[alternative HTML version deleted]]


