[R] why does this simple example NOT work?

2012-07-20 Thread Martin Ivanov
Hello, I want to create and save objects in a loop, but this is precluded by the following obstacle: this part of the script fails to work: assign(x=paste(a, 1, sep=), value=1); save(paste(a, 1, sep=), file=paste(paste(a, 1, sep=), .RData, sep=)) Do you know any workaround? I am already out

Re: [R] why does this simple example NOT work?

2012-07-20 Thread Berend Hasselman
Martin Ivanov wrote Hello, I want to create and save objects in a loop, but this is precluded by the following obstacle: this part of the script fails to work: assign(x=paste(a, 1, sep=), value=1); save(paste(a, 1, sep=), file=paste(paste(a, 1, sep=), .RData, sep=)) Do you know

Re: [R] why does this simple example NOT work?

2012-07-20 Thread Duncan Murdoch
On 12-07-20 2:50 AM, Martin Ivanov wrote: Hello, I want to create and save objects in a loop, but this is precluded by the following obstacle: this part of the script fails to work: assign(x=paste(a, 1, sep=), value=1); save(paste(a, 1, sep=), file=paste(paste(a, 1, sep=), .RData, sep=))

Re: [R] why does this simple example NOT work?

2012-07-20 Thread Berend Hasselman
Duncan Murdoch-2 wrote On 12-07-20 2:50 AM, Martin Ivanov wrote: Hello, I want to create and save objects in a loop, but this is precluded by the following obstacle: this part of the script fails to work: assign(x=paste(a, 1, sep=), value=1); save(paste(a, 1, sep=),