[R] Retrieving data frames from a for loop
Judith Flores
juryef at yahoo.com
Fri Feb 15 00:42:59 CET 2008
Dear R-helpers,
I need to retrieve the data frames generated in a
for loop. What I have looks something like this:
where tab is a pre-existing data frame.
for (i in 1:20) {
g<-sample(rep(LETTERS[1:2],each=10))
combination<-data.frame(tab,g)
}
I tried to name every single combination doing
this:
assign(paste('combination',i), combination)
without success.
I need to retrieve every combination per separate.
Thank you once again for your help.
____________________________________________________________________________________
Looking for last minute shopping deals?
More information about the R-help
mailing list