Displaying 1 result from an estimated 1 matches for "tp15492093p15495242".
2008 Feb 14
2
Retrieving data frames from a for loop
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