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
wrote:
> On 12
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
following
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:
: save(ge
3 matches
Mail list logo