Dear Witold E Wolski,

Re:

> I am have a procedure which generates multidimensional arrays.
> 
> To compute them is expensive so I want to store them in order to be
> able to analyse them later.
> 
> I am using at the moment
> 
> problem is that the array is always assigned to a variable ma (the
> computation is in a loop).
> Than I generate a file name and store it (i.e)
> save(ma, file="ma1.txt")
> save(ma, file="ma2.txt")
> ...
> 
> 
> problem starts when I want to load it
> load("ma1.RData") # loads in ma
> load("ma2.RData") # overrides ma
> 
> How can i prevent this behaviour. Is there a better way to store
> multidimensional arrays?
> 
> regards
> 
> 
> -- 
> Witold Eryk Wolski




It would be no problem if you processed one such array at a time, so

 1  load("ma1.RData") # loads in ma
 2  process array ma and save/print output
 3  load("ma2.RData") # overrides ma
 4  process array ma (now the new one) and save etc.
...

This can be automated by reading the directory contents and make a list of "ma-files", to be processed in a loop.
(I can provide an example if you like).

Hope this helps,

Best wishes,



Dr. Franklin Bretschneider
Dept of Biology
Utrecht Unversity
Padualaan 8
3584 CH  Utrecht
The Netherlands
f.bretschneider@uu.nl



	[[alternative HTML version deleted]]

