Re: [R] for loop with global variables

2011-05-06 Thread ivan
Hi, sorry for the late response and many thanks. A combination of get() and paste() did the job. Regards On Thu, Apr 28, 2011 at 5:06 PM, Petr PIKAL wrote: > Hi > > r-help-boun...@r-project.org napsal dne 28.04.2011 16:16:16: > > > ivan > > Odeslal: r-help-boun...@r-project.org > > > > 28.04.

Re: [R] for loop with global variables

2011-04-28 Thread Petr PIKAL
help-boun...@r-project.org > > 28.04.2011 17:17 > > Komu > > ivan > > Kopie > > r-help@r-project.org > > Předmět > > Re: [R] for loop with global variables > > Hi > > r-help-boun...@r-project.org napsal dne 28.04.2011 16:59:26: &

Re: [R] for loop with global variables

2011-04-28 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 28.04.2011 16:59:26: > ivan > Odeslal: r-help-boun...@r-project.org > > 28.04.2011 16:59 > > Komu > > jim holtman > > Kopie > > r-help@r-project.org > > Předmět > > Re: [R] for loop with

Re: [R] for loop with global variables

2011-04-28 Thread ivan
Hi, thank you for the response. What I actually want to do is pick automatically the results of the various outputs (which I have already defined as variables, e.g. output.1,output.2,etc) and insert them into a table. The list variable would be redundant since in order to create the data frame I w

Re: [R] for loop with global variables

2011-04-28 Thread jim holtman
Yes you can, but there is not enough explaination as to what you really want to do. I would suggest that you look at using a 'list' instead of individual objects: myList <- list(output.1 = rbind('a','b'), output.2 = rbind('c','d'), ...) Then you can use 'lapply' to operation on the elements. On