Re: [R] Problems using save to store NAMED R objects

2015-11-12 Thread Duncan Murdoch
On 12/11/2015 6:41 PM, Julio Sergio Santana wrote: I have to store (in a file) an R object that was created with is name as a string of characters, as follows: : nn <- "xxx" : assign(nn, 5) : xxx [1] 5 I don't want to store the object nn but the object xxx. I tried the

[R] Problems using save to store NAMED R objects

2015-11-12 Thread Julio Sergio Santana
I have to store (in a file) an R object that was created with is name as a string of characters, as follows: : nn <- "xxx" : assign(nn, 5) : xxx [1] 5 I don't want to store the object nn but the object xxx. I tried the following two expressions but none of them worked: :

Re: [R] Problems using save to store NAMED R objects

2015-11-12 Thread Julio Sergio Santana
Thanks Duncan, I just saw another, but similar, solution for this in http://stackoverflow.com/questions/11084395/save-object-using-variable-with-object-name , and it is: : save(list=nn, file="f.RData") Thanks again, -Sergio. On Thu, Nov 12, 2015 at 8:57 PM, Duncan Murdoch