Displaying 1 result from an estimated 1 matches for "foo50".
Did you mean:
foo0
2003 Sep 24
1
using assign on save?
...ct and the name of the saved object to reflect which time step is being written. I can do the file name in save using paste but cannot rename the object.
For example, I want to save object foo at time t = 50 in file "Run.50.Rdata." Furthermore, I want the object in that file to be "foo50."
This is what I'm doing now:
save(foo, file = paste("Run", t, "Rdata",sep="."))
which creates the right file name but obviously doesn't rename the object.
So, I tried assigning the object in the save function.
save(assign(paste("foo",...