On Fri, Sep 9, 2011 at 12:09 PM, Duncan Murdoch wrote:
> On 11-09-09 6:01 AM, Ivan Calandra wrote:
>
>> Hi!
>>
>> Why don't you just save tmp?
>> save(tmp, file = paste(name, "rda", sep = "."))
>>
>> I don't think it makes much difference, at least not with your example.
>> Or does it?
>>
>
> That
On 11-09-09 6:01 AM, Ivan Calandra wrote:
Hi!
Why don't you just save tmp?
save(tmp, file = paste(name, "rda", sep = "."))
I don't think it makes much difference, at least not with your example.
Or does it?
That saves it with the name "tmp", not "d2" as Göran wanted.
Duncan Murdoch
Ivan
On 11-09-09 5:55 AM, Göran Broström wrote:
I have a data frame 'tmp' and a vector 'name' containing 'd2'.
I want to save 'tmp' under the name hidden in 'name', and the file must have
the same name, plus the extension '.rda'.
So I try
tmp
x y
1 1 3
2 2 4
name
[1] "d2"
assign(name, tmp)
sum
Hi!
Why don't you just save tmp?
save(tmp, file = paste(name, "rda", sep = "."))
I don't think it makes much difference, at least not with your example.
Or does it?
Ivan
Le 9/9/2011 11:55, Göran Broström a écrit :
I have a data frame 'tmp' and a vector 'name' containing 'd2'.
I want to sav
4 matches
Mail list logo