Re: [R] using dynamic variable names

2011-10-13 Thread Jean V Adams
Rolf Turner wrote on 10/13/2011 03:09:12 AM: > > (1) See ?paste, ?assign, and ?get. > > (2) ***Don't*** do it this way!!! Use a list instead. That's the R-ish > way of doing things. See ?list. > > cheers, > > Rolf Turner > > On 13/10/11 18:23, Sasso Kocovski wrote: > > Hi, hop

Re: [R] using dynamic variable names

2011-10-13 Thread Rolf Turner
(1) See ?paste, ?assign, and ?get. (2) ***Don't*** do it this way!!! Use a list instead. That's the R-ish way of doing things. See ?list. cheers, Rolf Turner On 13/10/11 18:23, Sasso Kocovski wrote: Hi, hopefully you can help me out - thanks in advance. I would like to assign

[R] using dynamic variable names

2011-10-12 Thread Sasso Kocovski
Hi, hopefully you can help me out - thanks in advance. I would like to assign variable (or vectors) names dynamically, hence, after you assign the number of new vectors then they populate for use later in the algorithm. Below is an example: n<-5 for (i in (1:n)) { vector_i <- c(1:10) } Here wha