In practice, I find that it's difficult for S-plus to work with an object
that is over 15% to 25% of the available physical RAM (under
Windows). S-plus under Windows will generally get that memory message at
some point when working with such large data objects.
To read it in, your best bet is to convert it to a simple delimited ascii
format and then use scan(), with preallocation of memory (see the
documentation for scan()). This may require some effort on your part. If
it is all numeric data, then it's probably best to read it in as a single
vector (using scan), then add dimensions manually.
It may make it easier to work with the object if you can convert any double
data to single or integer (as long as the information in the data won't be
adversely affected.)
If you're using S-plus 6.1 under Windows 2000, then don't try to store an
object over 80Mb on a database in a networked file system -- it won't be
able to read the object successfully. (I don't know if this was completely
fixed in S-plus 6.2).
-- Tony Plate
At Friday 02:56 PM 4/23/2004, you wrote:
I'm trying to open/import a large (229MB) data file into S-PLUS 6.1. My
machine has 1GB of RAM, and oodles of hard drive space. Every time I try
to import the file, I get the error "Problem in rep.int(1:n, times):
Unable to obtain requested dynamic memory."
Any ideas as to what I can do to get around this? SPSS v10 has no problems
opening the same file.
Thanks,
Stephen
--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu. To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message: unsubscribe s-news
|