Skip to content

Memory question

1 message · Huntsinger, Reid

#
One way I do this is to use Luke Tierney's "active bindings". I make an
active binding of a name to a function which either loads or saves the
object. Then the name behaves like the R object it's replacing. This works
nicely as long as I don't need lots of random accesses to the matrix.

I'd be happy to send the functions I use to do this.

Reid Huntsinger

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Kenneth Roy Cabrera
Torres
Sent: Wednesday, July 13, 2005 7:14 AM
To: r-help at stat.math.ethz.ch
Subject: [R] Memory question
Importance: High


Hi R users and developers:

I want to know how can I save memory in R
for example:
  - saving on disk a matrix.
  - using again the matrix (changing their values)
  - saving again the matrix on disk in a different file.

The idea is that I have a process that generate several
matrices, but if I keep them all in memory it will overflow.

How can I save them in different files, so I use the same
amount of memory for each processed matrix?

Thank you for your help.