-boun...@r-project.org
28.04.2011 16:16
Komu
r-help@r-project.org
Kopie
PÅedmÄt
[R] for loop with global variables
Hi,
is there a possibility to use global variables in a for loop. More
specifically, I want to do the following:
output.1-rbind(a,b)
output.2-rbind
Hi,
is there a possibility to use global variables in a for loop. More
specifically, I want to do the following:
output.1-rbind(a,b)
output.2-rbind(c,d)
output.3-rbind(e,f)
.
.
.
output.n-rbind(...,...)
next I want to create a data frame with two columns:
Outputs
Values output.1 a,b output.2
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
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
Hi
r-help-boun...@r-project.org napsal dne 28.04.2011 16:59:26:
ivan i.pet...@gmail.com
Odeslal: r-help-boun...@r-project.org
28.04.2011 16:59
Komu
jim holtman jholt...@gmail.com
Kopie
r-help@r-project.org
Předmět
Re: [R] for loop with global variables
Hi,
thank you
...@r-project.org
28.04.2011 17:17
Komu
ivan i.pet...@gmail.com
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:
ivan i.pet...@gmail.com
Odeslal: r-help-boun...@r-project.org
6 matches
Mail list logo